Re: question about styling/highlighting abbreaviations

2010-09-21 Thread Ipacs Péter
Richard, Paul,

Thanks for the quick reply. It seems I have to read and experiment much more
on this matter. I've just found some suggestions around the acronym package.
While the acronym package does not fulfill the ultimate goal it might
partially serve my actual needs. The best would be the mixture of acronym +
nomenclature packages. Need to play a bit more with these beasts to know
them better.

Again, thank you for your kind help!

Cheers,
Peter

2010/9/20 Richard Heck 

> On 09/20/2010 08:55 AM, Ipacs Péter wrote:
>
>> Hi Guys,
>>
>> Forgive me if my question is newbie but I'm indeed a newbie both to latex
>> and to Lyx as well.I was trying to use some supported way to highlight
>> abbreviations in a Lyx document but I found no good way so far. I also did
>> the standard drill of looking through forums etc. without any luck.
>>
>> What I'm trying to achieve is something similar to the behavior of the
>>  tag in HTML; a way to semantically tell that a given piece of text is
>> an abbreviation and the ability to apply a common style to all the different
>> abbreviations.
>>
>> The nomenclature package looks promising but - as far as I understand - it
>> lacks this feature.
>>
>> It would be also nice to have a capability in Lyx that automatically
>> converts pieces of texts into abbreviations based on the list of
>> nomenclatures entered previously.
>>
>> Let me give you a quick example. I enter a nomenclature entry like:
>>  "HTML" = "Hyper Text Markup Language", for example. Later in the document
>> when I write "HTML" Lyx would automatically recognize the text as a known
>> abbreviation and in the rendered document all the occurrences of the string
>> "HTML" would have been styled as italics - maybe as hyperlinks to the
>> nomenclature list.
>>
>> What do you think? Is it possible to have something similar off the shelf?
>>
>>  Yes, the styling part is relatively easy. One way: Document>Settings,
> then go to the Modules pane. Load the "logicalmkup" module. This will give
> you access, in particular, to the Noun character style, under Edit>Text
> Settings. This one may not do what you want, but, if not, then it will be
> relatively easy to produce an alternative if you (a) look at the
> logicalmkup.module file, which will be in LyX's layout/ directory, and (b)
> read some of ch. 5 of the Customization manual.
>
> To make them all links would take a little more work. I'm no expert on
> nomenclature, so don't know exactly how to do it. But start with the styling
> part.
>
> Richard
>
>


Re: question about styling/highlighting abbreaviations

2010-09-20 Thread Richard Heck

On 09/20/2010 11:16 AM, Paul Rubin wrote:

My impression is that LyX 2.0 will have a macro capability.



Beyond the math macro stuff we already have, no, unfortunately.

Richard



Re: question about styling/highlighting abbreaviations

2010-09-20 Thread Richard Heck

On 09/20/2010 08:55 AM, Ipacs Péter wrote:

Hi Guys,

Forgive me if my question is newbie but I'm indeed a newbie both to 
latex and to Lyx as well.I was trying to use some supported way to 
highlight abbreviations in a Lyx document but I found no good way so 
far. I also did the standard drill of looking through forums etc. 
without any luck.


What I'm trying to achieve is something similar to the behavior of the 
 tag in HTML; a way to semantically tell that a given piece of 
text is an abbreviation and the ability to apply a common style to all 
the different abbreviations.


The nomenclature package looks promising but - as far as I understand 
- it lacks this feature.


It would be also nice to have a capability in Lyx 
that automatically converts pieces of texts into abbreviations based 
on the list of nomenclatures entered previously.


Let me give you a quick example. I enter a nomenclature entry like: 
 "HTML" = "Hyper Text Markup Language", for example. Later in the 
document when I write "HTML" Lyx would automatically recognize the 
text as a known abbreviation and in the rendered document all 
the occurrences of the string "HTML" would have been styled as italics 
- maybe as hyperlinks to the nomenclature list.


What do you think? Is it possible to have something similar off the shelf?

Yes, the styling part is relatively easy. One way: Document>Settings, 
then go to the Modules pane. Load the "logicalmkup" module. This will 
give you access, in particular, to the Noun character style, under 
Edit>Text Settings. This one may not do what you want, but, if not, then 
it will be relatively easy to produce an alternative if you (a) look at 
the logicalmkup.module file, which will be in LyX's layout/ directory, 
and (b) read some of ch. 5 of the Customization manual.


To make them all links would take a little more work. I'm no expert on 
nomenclature, so don't know exactly how to do it. But start with the 
styling part.


Richard



Re: question about styling/highlighting abbreaviations

2010-09-20 Thread Paul Rubin
What you have in mind with automatic substitution would be a macro.  LyX 1.6.x
does not support macros directly; you can create them in the preamble if you
know how to write LaTeX code.  My impression is that LyX 2.0 will have a macro
capability.  As an alternative hand-coding macros in LaTeX, you can bind a
custom key combination to a sequence of LyX functions (LFUNs) that inserts what
you want (so that, for instance, Ctrl-Alt-H inserts "HTML" along with possibly
some custom formatting).  The downside there is that (a) there's a limited
number of uncommitted key combos and (b) if you're like me, you won't remember
them.

As far as markup goes, remember that your document will probably end up being
turned into a DVI, PS or PDF file, so the final product will not contain any
markup.  I think what you want is visual cues, which leads you to custom
character styles.  Rob Oakes has a nice blog post
(http://blog.oak-tree.us/index.php/2009/11/14/customize-lyx-character-styles)
that will get you started on that.  I think Steve Litt also documented it
somewhere, but I'm afraid I don't have a link to his book handy.  Searching 
the archive of the user list should turn it up.

/Paul




question about styling/highlighting abbreaviations

2010-09-20 Thread Ipacs Péter
Hi Guys,

Forgive me if my question is newbie but I'm indeed a newbie both to latex
and to Lyx as well.I was trying to use some supported way to highlight
abbreviations in a Lyx document but I found no good way so far. I also did
the standard drill of looking through forums etc. without any luck.

What I'm trying to achieve is something similar to the behavior of the
 tag in HTML; a way to semantically tell that a given piece of text is
an abbreviation and the ability to apply a common style to all the different
abbreviations.

The nomenclature package looks promising but - as far as I understand - it
lacks this feature.

It would be also nice to have a capability in Lyx
that automatically converts pieces of texts into abbreviations based on the
list of nomenclatures entered previously.

Let me give you a quick example. I enter a nomenclature entry like:  "HTML"
= "Hyper Text Markup Language", for example. Later in the document when I
write "HTML" Lyx would automatically recognize the text as a known
abbreviation and in the rendered document all the occurrences of the string
"HTML" would have been styled as italics - maybe as hyperlinks to the
nomenclature list.

What do you think? Is it possible to have something similar off the shelf?

Thank you in advance!

Cheers,
Peter