Re: How to protect text

2012-07-27 Thread Guenter Milde
On 2012-07-24, barona, hugo wrote:

 I am writing a book about freeswitch. I need to explain how is the 
 structure of this soft switch that uses xml files that are parsed for 
 xml parser. But when I write a sentence like: . Etiquetas con 
 auto-cierre: alguna cosa/tal como X-PRE-PROCESS cmd=set 
 data=default_password=1234/. Este tipo de etiqueta es típico para 
 órdenes de ejecución que se realizan en forma inmediata tales como los 
 comandos.

 Lyx give me an error message like:

...

 Latex error: command \textquotedbl
 unavailable in encoding OT1/*

1. There seems to be a bug in LyX, it should not convert  to \textquotedbl
   when the font encoding (LyX calls it LaTeX encoding) is OT1.
   
2. As LyX uses the font encoding T1 instead of the LaTeX default OT1, you
   seem to have done some configuration or you are using a package that
   changes this. Try changing the font encoding back to T1 (LyXs default).


If this does not help, please post a **minimal** working example - save a
copy of your document and trim it down e.g. to the line

   example
   
but keep all settings (and maybe context) required to show the error.   

   
3. If this is not possible, you may, as an ugly hack, define the missing
   command in the LaTeX preamble:  
   
  \newcommand{\textquotedbl}{''}
  
   Mark that this will lead to two apostropes instead of a double quote
   character when someone uses drag-and-drop to copy the text from your
   PDF to some other application.


Günter



Re: How to protect text

2012-07-27 Thread Guenter Milde
On 2012-07-24, barona, hugo wrote:

 I am writing a book about freeswitch. I need to explain how is the 
 structure of this soft switch that uses xml files that are parsed for 
 xml parser. But when I write a sentence like: . Etiquetas con 
 auto-cierre: alguna cosa/tal como X-PRE-PROCESS cmd=set 
 data=default_password=1234/. Este tipo de etiqueta es típico para 
 órdenes de ejecución que se realizan en forma inmediata tales como los 
 comandos.

 Lyx give me an error message like:

...

 Latex error: command \textquotedbl
 unavailable in encoding OT1/*

1. There seems to be a bug in LyX, it should not convert  to \textquotedbl
   when the font encoding (LyX calls it LaTeX encoding) is OT1.
   
2. As LyX uses the font encoding T1 instead of the LaTeX default OT1, you
   seem to have done some configuration or you are using a package that
   changes this. Try changing the font encoding back to T1 (LyXs default).


If this does not help, please post a **minimal** working example - save a
copy of your document and trim it down e.g. to the line

   example
   
but keep all settings (and maybe context) required to show the error.   

   
3. If this is not possible, you may, as an ugly hack, define the missing
   command in the LaTeX preamble:  
   
  \newcommand{\textquotedbl}{''}
  
   Mark that this will lead to two apostropes instead of a double quote
   character when someone uses drag-and-drop to copy the text from your
   PDF to some other application.


Günter



Re: How to protect text

2012-07-27 Thread Guenter Milde
On 2012-07-24, barona, hugo wrote:

> I am writing a book about freeswitch. I need to explain how is the 
> structure of this soft switch that uses xml files that are parsed for 
> xml parser. But when I write a sentence like: . Etiquetas con 
> auto-cierre: tal como  data="default_password=1234"/>. Este tipo de etiqueta es típico para 
> órdenes de ejecución que se realizan en forma inmediata tales como los 
> comandos.

> Lyx give me an error message like:

...

> Latex error: command \textquotedbl
> unavailable in encoding OT1/*

1. There seems to be a bug in LyX, it should not convert " to \textquotedbl
   when the font encoding (LyX calls it LaTeX encoding) is OT1.
   
2. As LyX uses the font encoding T1 instead of the LaTeX default OT1, you
   seem to have done some configuration or you are using a package that
   changes this. Try changing the font encoding back to T1 (LyXs default).


If this does not help, please post a **minimal** working example - save a
copy of your document and trim it down e.g. to the line

   "example"
   
but keep all settings (and maybe context) required to show the error.   

   
3. If this is not possible, you may, as an ugly hack, define the missing
   command in the LaTeX preamble:  
   
  \newcommand{\textquotedbl}{''}
  
   Mark that this will lead to two apostropes instead of a double quote
   character when someone uses drag-and-drop to copy the text from your
   PDF to some other application.


Günter



Re: How to protect text

2012-07-25 Thread PhilipPirrip
You should better post here a minimal example file, i.e. LyX file with a 
sentence that is causing you problems.
When I copy the one you cited here to a LyX document, it successfully 
compiles.




Re: How to protect text

2012-07-25 Thread PhilipPirrip
You should better post here a minimal example file, i.e. LyX file with a 
sentence that is causing you problems.
When I copy the one you cited here to a LyX document, it successfully 
compiles.




Re: How to protect text

2012-07-25 Thread PhilipPirrip
You should better post here a minimal example file, i.e. LyX file with a 
sentence that is causing you problems.
When I copy the one you cited here to a LyX document, it successfully 
compiles.




How to protect text

2012-07-24 Thread barona, hugo
I am writing a book about freeswitch. I need to explain how is the 
structure of this soft switch that uses xml files that are parsed for 
xml parser. But when I write a sentence like: . Etiquetas con 
auto-cierre: alguna cosa/tal como X-PRE-PROCESS cmd=set 
data=default_password=1234/. Este tipo de etiqueta es típico para 
órdenes de ejecución que se realizan en forma inmediata tales como los 
comandos.


Lyx give me an error message like:

   */..tal como X-PRE-PROCESS
   cmd=\textquotedbl/*

   */{}set\textquotedbl{}/*

   */Your command was ignored./*

   */Type I command return to replace
   it with another command,/*

   */or return to continue without it./*

   */
   Latex error: command \textquotedbl
   unavailable in encoding OT1/*


How can I surround my text and do not get an error message?


thanks


hugo



How to protect text

2012-07-24 Thread barona, hugo
I am writing a book about freeswitch. I need to explain how is the 
structure of this soft switch that uses xml files that are parsed for 
xml parser. But when I write a sentence like: . Etiquetas con 
auto-cierre: alguna cosa/tal como X-PRE-PROCESS cmd=set 
data=default_password=1234/. Este tipo de etiqueta es típico para 
órdenes de ejecución que se realizan en forma inmediata tales como los 
comandos.


Lyx give me an error message like:

   */..tal como X-PRE-PROCESS
   cmd=\textquotedbl/*

   */{}set\textquotedbl{}/*

   */Your command was ignored./*

   */Type I command return to replace
   it with another command,/*

   */or return to continue without it./*

   */
   Latex error: command \textquotedbl
   unavailable in encoding OT1/*


How can I surround my text and do not get an error message?


thanks


hugo



How to protect text

2012-07-24 Thread barona, hugo
I am writing a book about freeswitch. I need to explain how is the 
structure of this soft switch that uses xml files that are parsed for 
xml parser. But when I write a sentence like: . Etiquetas con 
auto-cierre: tal como data="default_password=1234"/>. Este tipo de etiqueta es típico para 
órdenes de ejecución que se realizan en forma inmediata tales como los 
comandos.


Lyx give me an error message like:

   */..tal como   to replace
   it with another command,/*

   */or  to continue without it./*

   */
   Latex error: command \textquotedbl
   unavailable in encoding OT1/*


How can I surround my text and do not get an error message?


thanks


hugo