Re: NatBib "sort" specifier

2017-03-31 Thread Jürgen Spitzmüller
Am Freitag, den 31.03.2017, 17:58 -0400 schrieb Richard Heck:
> > Am I overlooking how to specify "sort" when using natbib
> > via LyX?  I see how I can use it in the preamble, but I cannot find
> > where to specify it using the Bibliography interface.
>  
> For now, add it as a document class option. It will be passed down
> the line.

Or even better, put

PackageOptions natbib sort

to Document > Settings > Local Layout.

I think the class options do not make it to natbib for some
implementation reason (on natbib's side).

Jürgen

signature.asc
Description: This is a digitally signed message part


Re: Lyx on Windows 10 phone

2017-03-31 Thread Scott Kostyshak
On Thu, Mar 30, 2017 at 05:36:51PM +0200, Littra wrote:
> Hi, has anyone been able to install Lyx on a Windows 10 mobile phone, i.e.
> incl. MikTeX etc.? If not, what is the best LaTeX editor on either Windows
> 10 or Android mobile phones? Thanks, Marco Weber

I've heard of users having success with:

  https://www.rollapp.com/app/lyx

If you try it and have a positive experience, we'd be curious to know.

Scott


signature.asc
Description: PGP signature


Re: mailmerge

2017-03-31 Thread Richard Heck
On 03/31/2017 04:05 PM, John White wrote:
>
> I use lyx and am using it more and more in what I call "mailmerge"
> mode, similar to how I once used mailmerge in Wordstar. Once I have a
> good form document (say a will or a contract) I replace the names
> with, say "@name1" and then I replace all @name1 with the new data,
> e.g. "Judy Jones".
>
>  
>
> This works fine, but on longer documents (say a 40 page document)
> with, say @name1 through @name12, it can get a bit confusing. I put
> all the replacement data in a separate lyx file and go back and forth
> to that file until I have made all replacements.
>
>  
>
> I use article class.
>
>  
>
> Is there perhaps a better layout or class or perhaps something else
> lyx that I should be using?
>

The easiest way to do this would be to use some LaTeX in your LyX
document. Where you now have "@name1" put, say:
\nameone
in ERT. Now in the preamble, say, put:
\def\nameone{Judy Jones}
This is a LaTeX variable, or "macro".

You could also do something like:
\def\nameonef{Judy}
\def\nameonel{Jones}
\def\nameone{\nameonef \nameonel}
and now you have access to first, last, and full names.

You can also put all of that in some separate LyX file, if you like, but
as ERT, and include it at the beginning of the file.

Caveats:

LaTeX does not allow numbers in variable names, only letters (well,
close enough). Hence "one".

You'll have to be careful to avoid naming conflicts with what LaTeX
already predefines. One way to do this is to use names like, e.g.,
\MERGEnameone.

You may run into problems with spaces after such macros. This is because
LaTeX sees the space after the macro as just separating it from what
follows, not as an actual space. You can handle this in a couple ways.
First, in the LyX file, you can do:
\nameone{}
in ERT. Now the braces terminate the macro, and LaTeX will treat a
following space as an actual space. The other option is to use the
xspace package. So the macro gets defined as:
\def\nameone{Judy Jones\xspace}
and you put
\usepackage{xspace}
into the preamble. The \xspace macro adds a space, but only if what
follows isn't punctuation, etc. It isn't perfect, but it usually works.

This is a very simple approach. Try searching "latex mail merge" for
more sophisticated ones.

Richard



Re: Including a hyperlink removes coloring from my URLs

2017-03-31 Thread Paul A. Rubin

On 03/31/2017 03:48 PM, Steve Litt wrote:

On Thu, 30 Mar 2017 16:25:18 -0400
"Paul A. Rubin"  wrote:


On 03/30/2017 03:45 PM, Steve Litt wrote:

Hi all,

Including one hyperlink in my document removes the color for all my
URLs. What I really want is my hyperlinks colored the same as my
URLs (currently red), but I definitely don't want my URLs colorless.

Does anyone know how to apply hyperlinks without screwing up URL
colors?

RELEVANT FACTS:

Linux, 64 bit Void distro

LyX version 2.2.2

Document class based on document class "book".

\usepackage{soul}

\usepackage[bookmarks,
plainpages=false,pdfpagelabels,colorlinks=true,bookmarksnumbered=true]{hyperref}

\usepackage{color}

  

I made a small test document (attached) using the standard book
class.

Paul, it turns around that, for some reason, when I put:

\usepackage[bookmarks,
unicode=true,plainpages=false,pdfpagelabels,colorlinks=true,bookmarksnumbered=true]{hyperref}

LyX ignored the arguments. But, when I put:

bookmarks,
unicode=true,plainpages=false,pdfpagelabels,colorlinks=true,bookmarksnumbered=true

in the Custom field in the document settings document class dialog box,
coloration comes back.

So that material must be repeated twice, once in that field, and once
in the layout file.

ACTUALLY, I lied. It turns out that if I have:

\usepackage{hyperref} in the layout and the arguments in the field, it
still works.

OH WAIT, I lied some more. It turns out I don't even have to put in the
layout file:

\usepackage{hyperref}

LyX somehow just knows that.

Whatever this is all about, it's in need of some serious documentation.

But, the good news is, I can go about my business using both URLs and
hyperlinks.

Thanks,

SteveT

Steve Litt
March 2017 featured book: Troubleshooting: Why Bother?
http://www.troubleshooters.com/twb
LyX loads certain LaTeX packages automagically when it sees some 
features of the document that it knows will need said packages. I'm 
pretty sure hyperref is in that category (see a hyperlink, load the 
package). What I believe happens then is that if the user tries to load 
the package manually in the preamble, LaTeX sees two \usepackage 
statements for the same package and pays attention to only one of them 
(the first, I think). I think the automatic load precedes user 
specifications in the preamble, so the user's options get lost. Seems to 
me I've seen a trick suggested in some cases where the user indicates 
that some module or something provides the disputed package, to prevent 
LyX from adding the automatic load command. (Note all the qualifiers in 
the previous paragraph: I'm not at all sure about this.)


As the Bard said, though, all's well that ends well.

Paul



Re: NatBib "sort" specifier

2017-03-31 Thread Richard Heck
On 03/31/2017 03:27 PM, Joel Kulesza wrote:
> All,
>
> Am I overlooking how to specify "sort
> "
> when using natbib via LyX?  I see how I can use it in the preamble,
> but I cannot find where to specify it using the Bibliography interface.

For now, add it as a document class option. It will be passed down the line.

> It looks like it should be specified as a \usepackage option. 
> However, in the Document -> Settings -> Bibliography window, it's not
> clear how I'd specify this.  I think this dialog is under active
> development; maybe this has been added?

In 2.3, there will be a place uneer Documents> Settings> Bibliography to
put such options.

Richard



mailmerge

2017-03-31 Thread John White
I use lyx and am using it more and more in what I call "mailmerge" mode, 
similar to how I 
once used mailmerge in Wordstar.  Once I have a good form document (say a will 
or a 
contract) I replace the names with, say "@name1" and then I replace all @name1 
with the 
new data, e.g. "Judy Jones".

This works fine, but on longer documents (say a 40 page document) with, say 
@name1 
through @name12, it can get a bit confusing.  I put all the replacement data in 
a separate lyx 
file and go back and forth to that file until I have made all replacements.

I use article class.

Is there perhaps a better layout or class or perhaps something else lyx that I 
should be 
using?

Thanks

John 


Re: Including a hyperlink removes coloring from my URLs

2017-03-31 Thread Steve Litt
On Thu, 30 Mar 2017 16:25:18 -0400
"Paul A. Rubin"  wrote:

> On 03/30/2017 03:45 PM, Steve Litt wrote:
> > Hi all,
> >
> > Including one hyperlink in my document removes the color for all my
> > URLs. What I really want is my hyperlinks colored the same as my
> > URLs (currently red), but I definitely don't want my URLs colorless.
> >
> > Does anyone know how to apply hyperlinks without screwing up URL
> > colors?
> >
> > RELEVANT FACTS:
> >
> > Linux, 64 bit Void distro
> >
> > LyX version 2.2.2
> >
> > Document class based on document class "book".
> >
> > \usepackage{soul}
> >
> > \usepackage[bookmarks,
> > plainpages=false,pdfpagelabels,colorlinks=true,bookmarksnumbered=true]{hyperref}
> >
> > \usepackage{color}
> >
> >  
> I made a small test document (attached) using the standard book
> class. 

Paul, it turns around that, for some reason, when I put:

\usepackage[bookmarks,
unicode=true,plainpages=false,pdfpagelabels,colorlinks=true,bookmarksnumbered=true]{hyperref}

LyX ignored the arguments. But, when I put:

bookmarks,
unicode=true,plainpages=false,pdfpagelabels,colorlinks=true,bookmarksnumbered=true

in the Custom field in the document settings document class dialog box,
coloration comes back.

So that material must be repeated twice, once in that field, and once
in the layout file.

ACTUALLY, I lied. It turns out that if I have:

\usepackage{hyperref} in the layout and the arguments in the field, it
still works.

OH WAIT, I lied some more. It turns out I don't even have to put in the
layout file:

\usepackage{hyperref} 

LyX somehow just knows that.

Whatever this is all about, it's in need of some serious documentation.

But, the good news is, I can go about my business using both URLs and
hyperlinks.

Thanks,

SteveT

Steve Litt
March 2017 featured book: Troubleshooting: Why Bother?
http://www.troubleshooters.com/twb


NatBib "sort" specifier

2017-03-31 Thread Joel Kulesza
All,

Am I overlooking how to specify "sort
"
when using natbib via LyX?  I see how I can use it in the preamble, but I
cannot find where to specify it using the Bibliography interface.

It looks like it should be specified as a \usepackage option.  However, in
the Document -> Settings -> Bibliography window, it's not clear how I'd
specify this.  I think this dialog is under active development; maybe this
has been added?

Thank you,
Joel


Re: glossary sort as

2017-03-31 Thread David L. Johnson

On 03/31/2017 01:11 PM, Wolfgang Engelmann wrote:



Am 31.03.2017 um 18:37 schrieb David L. Johnson:

On 03/31/2017 10:53 AM, Wolfgang Engelmann wrote:


I try to get an item starting with an Umlaut 'Ü' sorted under the 
appropriate place U and not at the end of the glossary. I added in 
this nomenclature item under */sort by/* an *U* hoping that it would 
now be correctly sorted. It does not (see appended lyx file).


I would appreciate a hint what I am doing wrong. I am using lyx 
2.2.0 under Debian. Do I need another package instead of 
nomenclature, which takes care of umlaute?



As a guess, since you probably use a font set that includes the 
Umlaut-U as a character, the glossary is sorting by the order that 
that symbol appears in the font.  You might try replacing that 
character by the TeX equivalent \"{U}  (in ERT) and see whether it is 
then properly alphabetized.

--
  
David L. Johnson

Department of Mathematics
Lehigh University
Thanks, David, that did it. What about $Q_{10}$? It is sorted 
correctly, but the global


\renewcommand{\nomlabel}[1]{\textsf{\textbf{#1}}}

does not turn it into bold, nor does the individual \textbf{$Q_{10}$} 
do it.


Wolfgang


I'm glad I guessed right about the umlaut.  But for this I think there 
is a different problem.  \textbf{}  has, I believe, a problem with math 
mode.  Try $\mathbf{Q_{10}}$ instead -- or, equivalently, enter 
math-mode in LyX and type \mathbf (then space), and then Q_10 (space).


--
 
David L. Johnson

Department of Mathematics
Lehigh University



Re: glossary sort as

2017-03-31 Thread Wolfgang Engelmann


Am 31.03.2017 um 18:37 schrieb David L. Johnson:

On 03/31/2017 10:53 AM, Wolfgang Engelmann wrote:


I try to get an item starting with an Umlaut 'Ü' sorted under the 
appropriate place U and not at the end of the glossary. I added in 
this nomenclature item under */sort by/* an *U* hoping that it would 
now be correctly sorted. It does not (see appended lyx file).


I would appreciate a hint what I am doing wrong. I am using lyx 2.2.0 
under Debian. Do I need another package instead of nomenclature, 
which takes care of umlaute?



As a guess, since you probably use a font set that includes the 
Umlaut-U as a character, the glossary is sorting by the order that 
that symbol appears in the font.  You might try replacing that 
character by the TeX equivalent \"{U}  (in ERT) and see whether it is 
then properly alphabetized.

--
  
David L. Johnson

Department of Mathematics
Lehigh University
Thanks, David, that did it. What about $Q_{10}$? It is sorted correctly, 
but the global


\renewcommand{\nomlabel}[1]{\textsf{\textbf{#1}}}

does not turn it into bold, nor does the individual \textbf{$Q_{10}$} do 
it.


Wolfgang




bilingual translation

2017-03-31 Thread Alessandro Bandeira Duarte

Dear members,

I translated the book Begriffsschrift into portuguese using LyX. 
However, the editor wants a bilingual edition. I've found the package 
reledpar. My question: Are there other packages that do the same work?


Best regards

Alessandro Duarte


bilingual translation

2017-03-31 Thread Alessandro Bandeira Duarte
 

Dear members, 

I translated the book Begriffsschrift into
portuguese using LyX. However, the editor wants a bilingual edition.
I've found the package reledpar. My question: Are there other packages
that do the same work? 

Best regards 

Alessandro Duarte 
--


Alessandro Bandeira Duarte
UFRRJ
www.alessandroduarte.com.br
[1]
http://nulfic.org [2]
(Usa GNU/Linux)
"Colaborar atrai amigos,
competir atrai inimigos …"
https://gitlab.com/dedekindbr
[3]
alessandrodua...@ekiga.net [4]
https://quitter.se/fregebr [5]
apesar
da crise...

 

Links:
--
[1] http://www.alessandroduarte.com.br
[2]
http://grupofilosofiadamatematica.com.br
[3]
https://github.com/dedekindbr/UFRuralRJ
[4]
http://webmail-seguro.com.br/alessandrodua...@ekiga.net
[5]
https://quitter.se/fregebr


Re: Consultation about editing CLS file

2017-03-31 Thread Guenter Milde
Dear Adrian,

On 2017-03-30, Adrian Dario Zambrano Fuenmayor wrote:

> I am currently writing my thesis book, and I was provided with a .cls file
> by my previous university to comply with the parameters needed for writing
> my undergraduate thesis. This time I am intending to use the same .cls file
> to write my master thesis, but I would like to edit certain lines of the
> code of the mentioned file.

> I tried to do that by directly editing the file using the Notepad, but when
> I try to compile it with Lyx, it immediately launches an error.

> I would like to know if it is possible to edit the contents of a class file
> (.cls), so that I can customize some of the code lines to comply with the
> new format of my master thesis book.

a) You can edit a *.cls (LaTeX document class) file with any text editor.

   You need to make sure the content stays valid LaTeX code, though.
   You may need to consult a LaTeX book or online documentation, e.g.,
   the starter "clsguide.pdf" that comes with every LaTeX distribution.

b) The cls file cannot be compiled directly, only documents using it can be
   compiled (this holds for both, LaTeX and LyX documents).
   
   To test your *.cls file, create a small LaTeX document and compile this
   "by hand".
   
c) LyX adds a layer, the *.layout file that is an interface between the
   definitions in the *.cls file and what you want to see in LyX.
   See Help>Customization for details.
   
Hope that gets you started. In case of problems, please ask giving a
*minimal* example and the error message.

Günter   



How to insert a colored frame around a sub-matrix of matrix?

2017-03-31 Thread Paul Smith
Dear All,

How to insert a colored frame around a sub-matrix of matrix? I am
using the \bmatrix environment.

Thanks in advance,

Paul


Re: Nomenclature-Glossary >solved

2017-03-31 Thread Wolfgang Engelmann


Am 30.03.2017 um 07:54 schrieb Wolfgang Engelmann:



Am 29.03.2017 um 21:05 schrieb Wolfgang Engelmann:



Am 29.03.2017 um 20:45 schrieb Wolfgang Engelmann:



Am 29.03.2017 um 15:28 schrieb Wolfgang Engelmann:
Could somebody give me a pointer where I can find informations re 
Nomenclature. I found how to change the normal Nomenclature into 
Glossary in the preamble:

\renewcommand{\nomname}{Glossar}
But how do I
1- get a two column Glossary, in order to save space
2- how do I reduce the space between the entered name and the 
explanation such as:

FRQ< here less space   > Frequency Protein
Wolfgang


Forgot to say, that I am using Komascript book style
Wolfgang
I found out the answer to question 2 (clicking on nomenclature, list 
indentation > custom, custom width e.g. 5 mm)
For question 1 I guess I have to insert the multicolumn {2}, but how 
do I restrict it to the glossary?

Wolfgang

found also the answer to question 2 myself: (in ERT):
 \begin{multicols}{2} before and \end{multicols} after the 
Nomenclature item at end of the document.

But there is a third question:
How can I put the glossary items in bold?
Wolfgang
LyX Document 

Found the answer to my third question in the User guide 6.7.1:

\renewcommand{\nomlabel}[1]{\textsf{\textbf{#1}}}