Version: 1.6.3 (using KDE KDE 3.2.2) Installed from: Solaris Packages OS: Solaris Creating labels within a user-defined command like this: \newcommand{\Label}[1]{\label{#1}} and using this command like this: \Label{nextHallo} We are on page \pageref{nextHallo}. results in correct output and no complains by latex. However, while typing to "page" and trying to use LaTeX -> References -> ref/pageref won't show the (existing) label "nextHallo" but something like "#1". Same with document structure on the left. Seems as if kile doesn't handle parameters to commands very well.
>Seems as if kile doesn't handle parameters to commands very well. Make that: Kile doesn't handle user defined commands _at all_. I admit, this is lacking in Kile. I'm planning to allow users to define which commands define label,section etc. in the Configuration dialog. However this will not be part of kile-1.7 (next release), probably it will be in 1.8. best, Jeroen
Hello, just to say what we already have. You can define your own label, cite and ref commands. Thomas
Not solaris specific.
This is fixed now since quite a while, isn't it?
Agree with Tobias - should have been marked fixed in 2005 w/ Thomas' comment.
Maybe I missed something but how can one add section names like \mySection{} into kile? Therefore I think this bug does still apply to kile
*** Bug 58967 has been marked as a duplicate of this bug. ***
I am also missing the possibility to tell Kile that certain commands should be treated as section commands in the "Structure view" on the left. An example: I have a file in which I store bits of text that I quote in other files. The complete file could look like this: \newcommand{\mycitation}[2]{\newcommand{#1}[1]{#2}} \mycitation{\theDefinitionQuote}{DEFINITION: a quote is a piece of text} \mycitation{\theTheoremQuote}{THEOREM: A quote may be reused in any file that contains \verb\input{this_file}\verb.} I want the Structure view to show this: * theDefinitionQuote * theTheoremQuote How can I do that?
Ok, I've found it, it's there. Open Kile, go to Settings -> Configure Kile -> (in the left half of the window) Latex -> General -> (in the right half of the window, under the heading "Commands" Configure -> Commands -> Labels there I added a new label called "mycitation" and after clicking OK, it shows as a label in the structured list Very cool!
But that still does not solve the issue with user-defined section types. Currently, the user has to treat those as a label, reference, citation, or an include.
Not solaris-specific (seems in 2008 I didn't remove all the solaris-labeling)