Re: Subfigures: \subref support?

2011-05-11 Thread Julien Rioux

On 10/05/2011 3:09 PM, Diego Queiroz wrote:

Thanks for the answers.

But I think I wasn't clear.
I want to use the \subref command not the \ref one (supported by default on
LyX).
The difference between them is that \ref produces 1a while \subref
produces only a.

I need to cite subfigures in the caption of the main float.

Example.:
Fig(a) --- Fig(b)
Figure 1: Here you see some figure (a) and another figure (b).

Got it?

But now I'm almost sure LyX really doesn't really support it.
If so, this is another good (and simple) improvement for LyX 2.1. :-)


Cheers,
---
Diego Queiroz



Unfortunately no it is not supported and moreover the macro \subref 
conflicts with the use of refstyle which was implemented in 2.0 (in this 
case \subref is a reference to a subsection and yields subsection 1.1).


So you will have to type a yourself or use TeX code.

Cheers,
Julien


Re: Patch for the CJK InputMethod

2011-05-11 Thread Atsushi Shimmura
On Wed, 11 May 2011 01:40:24 -0400
Julien Rioux jri...@physics.utoronto.ca wrote:


  On Tue, 10 May 2011 22:59:58 -0400
  Julien Riouxjri...@physics.utoronto.ca  wrote:

 Sorry, I meant the display of math preview inside the LyX screen itself. 
 LaTeX is used (in your case platex) to produce a small image file. Then 
 it is displayed on the screen. This is activated in the menu: Tools  
 Preferences  Display. It is called instant preview and has three 
 settings On, Off, and No math. When set to On it should 
 transform your math into an image as I described. From your screenshot 
 it looks like it does not.

I see, is that?

 Regards,
-- 
Atsushi Shimmura a.shimm...@gmail.com
attachment: sample2.jpg

Re: Patch for the CJK InputMethod

2011-05-11 Thread Julien Rioux

On 11/05/2011 2:25 AM, Atsushi Shimmura wrote:

On Wed, 11 May 2011 01:40:24 -0400
Julien Riouxjri...@physics.utoronto.ca  wrote:



On Tue, 10 May 2011 22:59:58 -0400
Julien Riouxjri...@physics.utoronto.ca   wrote:



Sorry, I meant the display of math preview inside the LyX screen itself.
LaTeX is used (in your case platex) to produce a small image file. Then
it is displayed on the screen. This is activated in the menu: Tools
Preferences  Display. It is called instant preview and has three
settings On, Off, and No math. When set to On it should
transform your math into an image as I described. From your screenshot
it looks like it does not.


I see, is that?

  Regards,


Yep that's it.
Thanks,
Julien


Re: Subfigures: \subref support?

2011-05-11 Thread Diego Queiroz

 Unfortunately no it is not supported and moreover the macro \subref
 conflicts with the use of refstyle which was implemented in 2.0 (in this
 case \subref is a reference to a subsection and yields subsection 1.1).

 So you will have to type a yourself or use TeX code.


Are you sure? As stated before, I already solved the problem using ERT.
No conflicts a all.


Problem with xdvi preview on MAC OSX

2011-05-11 Thread Robert Betz
I have recently installed Lyx 2.0 for the MAC (OSX 10.6.7).  I have been trying 
to get the xdvi preview to work -- the Preferences-File handling-File 
Formats-DVI entry has been set up for xdvi by the installaton  I have MacTex 
2010 installed. 

xdvi runs fine from the a Terminal window.  In fact if can run xdvi from the 
temporary directory where dvi file created by Lyx resides. However when I try 
to preview from the Lyx GUI environment it says that the dvi preview is 
successful but the xdvi window never opens. I have opened the messages window 
and the command is being read correctly. The command generated by Lyx is 
exactly the same as the one I use on the terminal command line, which runs! 

I don't know whether this is a bug or whether it is something that is wrong 
with my system. Asking if anyone else has had this issue. 

Thanks. 


Regards


Bob Betz



-

Dr. Robert Betz
Ampcontrol Professor of Power Engineering,
Head, School of Electrical Engineering and Computer Science,
Faculty of Engineering and Built Environment,
University of Newcastle, Australia,

email: robert.b...@newcastle.edu.au
FAX: +61-2-4921-6993
TEL: +61-2-4921-6091
Mobile: (+61)-(0)419249948
Web: http://eecsbobb.newcastle.edu.au/rebetz

-













Re: selecting fonts in xetex

2011-05-11 Thread Guenter Milde
On 2011-05-10, Neal Becker wrote:

 I'm interested in trying out xetex.  Any suggestions for font settings
 to try (free, widely available)?  This is fedora 14, have stix fonts.

This very much depends on what you want to achieve.
As with XeTeX, you can use system fonts, this leaves the realm of TeX
and you can follow the advise of the typesetting gurus.

Some links:
http://en.wikipedia.org/wiki/Typophile_%28Internet_Forum%29
http://praegnanz.de/essays/freie-schriften-anspruch-und-wirklichkeit
(German)
http://www.100besteschriften.de/ (German)

If you want matching math fonts, the selection becomes considerably
narrower.

 How are math fonts selected?

By default, math fonts are not changed and still taken from the 8-bit
encoded CM fonts.

To configure math fonts, there are two options:

a) load a traditional math-font package like fourier, txfonts or
   qtxfonts or mathdesign or kpmath or ...
   *before* configuring the text fonts.
   
   In LyX this means to leave the Font GUI at [Default], read the
   fontconfig documentation and configure text fonts in the LaTeX
   preamble, e.g. 
   
   % Requirements
   \usepackage{fourier}
   
   % Text font
   \usepackage[no-math]{fontspec}
   \usepackage{xunicode}
   \setmainfont[BoldFont={XITS Bold},ItalicFont={XITS Italic}]{XITS Math}
   \setsansfont{DejaVu Sans}
   % \setmonofont[HyphenChar=None,Scale=MatchUppercase]{DejaVu Sans Mono}
   \setmonofont[HyphenChar=None,Scale=MatchUppercase]{FreeMono}

b) use the experimental unicode-math package 
   http://ctan.org/pkg/unicode-math
   with one of the few OpenType Math fonts Asana-Math, XITS, Cambria-Math
   (from MS-Word), NeuEuler or (the soon to be released) LM-Math.
   
   Again, you need to call and configure this in the LaTeX preamble.
   See the comprehensive package documentation
   http://mirror.ctan.org/macros/latex/contrib/unicode-math/unicode-math.pdf
  
   As this is hithero not tested with LyX, you might expect some
   incompatibilities and problems.

Günter



Re: Using non-computer modern numbers in lyx 2.0

2011-05-11 Thread Guenter Milde
On 2011-05-10, Tom Wood wrote:

 [-- Type: text/plain, Encoding:  --]

 First, thanks for the integration of XeTeX and LuaTeX and LyX. LyX is now a
 brilliant tool.

 One problem remains- I'm sure there's a very simple fix for this, so I
 apologize in advance if I've missed something obvious.

 I use ERT to bring statistical tables from R, an open source statistics
 language. This works great, except that the numbers in these tables remain
 Latin Modern, rather than whatever font I've used with XeTeX. I've attached
 the compiled pdf and the lyx file.

 Is there an easy way to ensure that the numbers in the table match the font
 used in the text and the table?

Are the number in math mode? Math fonts are not changed by the
non-TeX fonts GUI.

Either change this to be in text mode, or see my post on the which
fonts with xetex thread.

Günter



Re: Math macros inside child documents

2011-05-11 Thread Guenter Milde
On 2011-05-10, Diego Queiroz wrote:

  For truly consistent behaviour, we would have to disable stand-alone
  compilation of documents setting a master (except for included (vs.
  input) documents).

 This is a strong restriction.

But the only one for truly consistent behaviour. If you want to export
stand-alone, uncheck the master setting.

 With this, in a document with thousand of pages I will obligated to
 generate all pages? I do not agree.

No, you can *include* the sub-documents and use the includeonly feature
to compile a subset of sub-documents where LaTeX will ensure
(almost) correct page numbers and references and LyX will use the
parent doc settings instead of the child-doc ones.

  Actually, I regularly compile stand-alone child docs (to save time on
  checking the appearance in the output). I have set up a stand-alone
  branch for math-macros and bibliography and I can live with the
  question marks in the references.

 This is another subject, but let's understand the question marks are a
 problem to be solved too.

This is solved by using include and includeonly instead of
stand-alone compilation.
I do not think that LyX must re-implement this feature.

 I think it would be good if LyX doesn't generate so much errors, 

Actually, *you* generate the error -- a reference to a label that does
not exist in the document. Setting a master (currently) is just an
editing hint but does not change the way a document is compiled
stand-alone.

Maybe there could be better visual feedback in
LyX, but this requires that the buffer is aware of the intended use:

a) compile the master
b) compile the master but includeonly the child
c) compile the child stand-alone

Maybe a configurable default-action for the compile buttons (and View...
menu items) could trigger the matching feedback in the buffer.
(With the default-default action for documents that set the master and 

   are input- a)
   are included - b)
)

 but I vote against the generation of documents with wrong content
 (i.e. the question marks). Otherwise, LyX could not stop on the first
 error, as it already do today. That is, currently, if a error is found,
 LyX just stops and warns the user. Even if the document can still be
 generated by LaTeX. We didn't define LyX to just continue and see what
 you get because we don't want this, right?

I am not sure about this. If I remember right, the LaTeX run is done in
nonstopmode but the output not opened in a viewer - I'd like a
show output anyway button in the error message dialogue. Having
a look at the output is sometimes far more helpful than TeX error
messages.

 In the worst case, I'm in favor of a warning to the user about these wrong
 things.

I prefer this continue but warn, so that e.g. unresolved references
[??] do not go unnoticed but do not prevent me from checking page breaks
or the position of floats.

...

Günter



Re: Problem with xdvi preview on MAC OSX

2011-05-11 Thread Stephan Witt
Am 11.05.2011 um 09:27 schrieb Robert Betz:

 I have recently installed Lyx 2.0 for the MAC (OSX 10.6.7).  I have been 
 trying to get the xdvi preview to work -- the Preferences-File 
 handling-File Formats-DVI entry has been set up for xdvi by the installaton 
  I have MacTex 2010 installed.
 
 xdvi runs fine from the a Terminal window.  In fact if can run xdvi from the 
 temporary directory where dvi file created by Lyx resides. However when I try 
 to preview from the Lyx GUI environment it says that the dvi preview is 
 successful but the xdvi window never opens. I have opened the messages window 
 and the command is being read correctly. The command generated by Lyx is 
 exactly the same as the one I use on the terminal command line, which runs!
 
 I don't know whether this is a bug or whether it is something that is wrong 
 with my system. Asking if anyone else has had this issue.

Sorry, I tried it and it works on my system - Mac 10.6.7, LyX 2.0, MacTeX 2009.

Stephan

Re: Need help getting APA citing working

2011-05-11 Thread Julio Rojas
It works, only not it seems not to work with Natbib. From apacite's manual:

I consider natbib as the de facto standard with which other packages should
be compatible.
Unfortunately, apacite is still not entirely compatible with natbib. The
main incompatibility is that
different citation commands are used, so that it is not possible to use the
same document with
natbib or apacite.

Regards.

-
Julio Rojas
jcredbe...@gmail.com


On Wed, May 11, 2011 at 7:35 AM, Julien Rioux jri...@physics.utoronto.cawrote:

 On 11/05/2011 1:07 AM, Mark Livingstone wrote:

 Hello!

 I am commencing my B.InfoTech (Hons) and want to use Lyx for reports,
 thesis
 etc. I have installed the new Lyx 2.0 on my Macbook Pro and am using up to
 date Mactex live from the mirror.aarnet.edu.au mirror) and am
 experimenting
 using the article (KOMA-Script) document class. Into my document, I have
 inserted a Bibtex generated Bibliography, selected Natbib Author-year,
 using
 apacite and pointed it at my marklivingstone.bib file. I typed some text
 and inserted some trial citations selecting (author, year) type citation
 as
 appropriate for varying numbers of authors.

 When I do an update, and view, I get a beautiful result, but the citations
 use and instead of , and the volume numbers are not italicised.

 Before bothering you guys, I went to the Wiki and found the APALyX page. I
 downloaded the ApaExample.lyx which I note also uses apacite and which
 has
 correctly done ampersand signs and volume number citation style. This
 tells
 me I must have all the requisite class / style / etc files. Unfortunately,
 I
 am very new to Latex / Lyx, and I don't know how to fix my citations. I
 considered using the ApaExample.lyx but its stylistic elements are just
 too
 far from my desired requirements. I don't want their style, just their
 citation format ;-)

 On the ApaLyX page, it says you will need an apa.layout file and says to
 get
 it (and doesn't say where from!)

 Thanks in advance,

 MarkL


 Hi,

 First, apa.layout is nowadays shipped with the regular install of LyX.

 Second, you might try to put the following line in the LaTeX preamble
 (Document  Settings  LaTeX preamble)

 \usepackage{apacite}

 (not tested)

 --
 Julien



Re: Need help getting APA citing working

2011-05-11 Thread stefano franchi
On Wed, May 11, 2011 at 5:04 AM, Julio Rojas jcredbe...@gmail.com wrote:
 It works, only not it seems not to work with Natbib. From apacite's manual:
 I consider natbib as the de facto standard with which other packages should
 be compatible.
 Unfortunately, apacite is still not entirely compatible with natbib. The
 main incompatibility is that
 different citation commands are used, so that it is not possible to use the
 same document with
 natbib or apacite.
 Regards.

You may consider switching to biblatex (from standard bibtex) and
using the biblatex-apa style (http://www.ctan.org/pkg/biblatex-apa).
Biblatex is not completely integrated with Lyx yet, so you may have to
write a few commands in ERT (i.e. pure Latex), but it works fairly
well once you get the hang of it. Look at the wikipages to get started
(http://wiki.lyx.org/BibTeX/Biblatex). I switched to using biblatex  a
couple of years ago and have no regrets---it is much more flexible and
powerful than bibtex. Moreover, it is clearly the way forward for
managing bibliographies in latex/Lyx. It is actively developed, with
an increasing user base, etc. If you are just starting in Lyx/Latex,
it may be wise to learn how to use it. However, I have no experience
with biblatex-apa. You may want to look at the manual to see if it
fits your needs.

Cheers,

Stefano


Re: Subfigures: \subref support?

2011-05-11 Thread Julien Rioux

On 11/05/2011 3:16 AM, Diego Queiroz wrote:


Unfortunately no it is not supported and moreover the macro \subref
conflicts with the use of refstyle which was implemented in 2.0 (in this
case \subref is a reference to a subsection and yields subsection 1.1).

So you will have to type a yourself or use TeX code.



Are you sure? As stated before, I already solved the problem using ERT.
No conflicts a all.



Yes I'm sure.

- Have a label sub:mysection in a subsection.
- Insert a reference to it using Formatted reference format.
- Make sure refstyle is used instead of prettyref (this is changed in 
document settings Document class ; refstyle is the default for new docs)


So far all this works. LyX generates \subref{mysection}, which is the 
refstyle syntax for that.


Now if you also use a subfloat within a float you get a conflict. 
Because subfloat also defines a \subref macro. The conflict is silent... 
but you get [??] in output.


Avoid this combination and you're safe.

Cheers,
Julien


Re: Subfigures: \subref support?

2011-05-11 Thread Diego Queiroz

 Yes I'm sure.


Yeah, you are right. But this is a LyX bug. It should use a not-so-obvious
name for the command to prevent a conflict like this.
However, the command \subref is defined by LyX only when you use the
Formatted reference. Since I don't use this type of cross-reference, there
is no problem with my ERT.

I'll create a ticket for this.

Cheers,
---
Diego Queiroz


Re: selecting fonts in xetex

2011-05-11 Thread Neal Becker
Guenter Milde wrote:

 On 2011-05-10, Neal Becker wrote:
 
 I'm interested in trying out xetex.  Any suggestions for font settings
 to try (free, widely available)?  This is fedora 14, have stix fonts.
 
 This very much depends on what you want to achieve.
 As with XeTeX, you can use system fonts, this leaves the realm of TeX
 and you can follow the advise of the typesetting gurus.
 
 Some links:
 http://en.wikipedia.org/wiki/Typophile_%28Internet_Forum%29
 http://praegnanz.de/essays/freie-schriften-anspruch-und-wirklichkeit
 (German)
 http://www.100besteschriften.de/ (German)
 
 If you want matching math fonts, the selection becomes considerably
 narrower.
 
 How are math fonts selected?
 
 By default, math fonts are not changed and still taken from the 8-bit
 encoded CM fonts.
 
 To configure math fonts, there are two options:
 
 a) load a traditional math-font package like fourier, txfonts or
qtxfonts or mathdesign or kpmath or ...
*before* configuring the text fonts.

In LyX this means to leave the Font GUI at [Default], read the
fontconfig documentation and configure text fonts in the LaTeX
preamble, e.g.

% Requirements
\usepackage{fourier}

% Text font
\usepackage[no-math]{fontspec}
\usepackage{xunicode}
\setmainfont[BoldFont={XITS Bold},ItalicFont={XITS Italic}]{XITS Math}
\setsansfont{DejaVu Sans}
% \setmonofont[HyphenChar=None,Scale=MatchUppercase]{DejaVu Sans Mono}
\setmonofont[HyphenChar=None,Scale=MatchUppercase]{FreeMono}
 
 b) use the experimental unicode-math package
http://ctan.org/pkg/unicode-math
with one of the few OpenType Math fonts Asana-Math, XITS, Cambria-Math
(from MS-Word), NeuEuler or (the soon to be released) LM-Math.

Again, you need to call and configure this in the LaTeX preamble.
See the comprehensive package documentation
http://mirror.ctan.org/macros/latex/contrib/unicode-math/unicode-math.pdf
   
As this is hithero not tested with LyX, you might expect some
incompatibilities and problems.
 
 Günter

Thanks!  I found setting 
roman - XITS
+
\usepackage{unicode-math}
\setmathfont{XITS Math}

was good.  Only missing a \tt font to go with it.  I tried Deja Sans Mono, but 
the characters look larger than the roman text, not good.  Also tried Nimbus 
mono, but it's too thin.



Re: selecting fonts in xetex

2011-05-11 Thread Bruce Pourciau


On May 11, 2011, at 2:32 AM, Guenter Milde wrote:


How are math fonts selected?


By default, math fonts are not changed and still taken from the 8-bit
encoded CM fonts.

To configure math fonts, there are two options:


You could also, within LyX, use the mathpazo package: In Document  
Settings  Fonts choose Palatino and check Small Caps and Old Style  
figures. This gives you Zapf's lovely Palatino for text and symbols  
for mathematics that have been redrawn (Palatino'd) to blend well with  
the text.


Bruce



Re: selecting fonts in xetex

2011-05-11 Thread Neal Becker
Bruce Pourciau wrote:

 
 On May 11, 2011, at 2:32 AM, Guenter Milde wrote:
 
 How are math fonts selected?

 By default, math fonts are not changed and still taken from the 8-bit
 encoded CM fonts.

 To configure math fonts, there are two options:
 
 You could also, within LyX, use the mathpazo package: In Document
 Settings  Fonts choose Palatino and check Small Caps and Old Style
 figures. This gives you Zapf's lovely Palatino for text and symbols
 for mathematics that have been redrawn (Palatino'd) to blend well with
 the text.
 
 Bruce

Unfortunately, on my setup (texlive-2010) Palatino seems quite broken.  Every 
character seems to be underined (load of errors in log), and all text chars are 
blank.



Re: Math macros inside child documents

2011-05-11 Thread Diego Queiroz

 But the only one for truly consistent behaviour. If you want to export
 stand-alone, uncheck the master setting.


Even if the master setting is not set in the child, LyX still display all
macros perfectly if the master document is open.
My complaint is this: if LyX is able to interpret things and display them in
the editor, it should be able to generate the output. That's all.
Specially if this problem is not present in older versions.

No, you can *include* the sub-documents and use the includeonly feature
 to compile a subset of sub-documents where LaTeX will ensure
 (almost) correct page numbers and references and LyX will use the
 parent doc settings instead of the child-doc ones.


What happens when you set the include only option?
The whole document is generated and the pages are ommited or it handle the
pages in a more fashioned way?

I am asking this because, if LyX handles it in a good way, we can change the
action of the view button of child docs to automatically generate the master
document including only the active document. This appears suitable for me
and is better than blocking.


 Actually, *you* generate the error -- a reference to a label that does
 not exist in the document. Setting a master (currently) is just an
 editing hint but does not change the way a document is compiled
 stand-alone.


If LyX options were consistent, it won't let me generate such errors.
It doesn't really matter if I am responsible for them or not: computers are
here to handle problems we don't want to deal with, right? They are not here
to introduce another class of problems (although I agree this is not always
true :-) .


 I am not sure about this. If I remember right, the LaTeX run is done in
 nonstopmode but the output not opened in a viewer - I'd like a
 show output anyway button in the error message dialogue. Having
 a look at the output is sometimes far more helpful than TeX error
 messages.


A show output anyway button would be great.
However, if LyX consistency were assured, there's no need for it (expect
when using ERT).

---
Diego Queiroz


Re: Patch for the CJK InputMethod

2011-05-11 Thread K. Yokota
2011/5/11 Julien Rioux jri...@physics.utoronto.ca:
 This looks interesting. So it delimits the words in a long sentence, is that
 right? I am not sure I understand.

I think he wants to say that somehow LyX has its own settings for
displaying delimitation when IME converts keyboard inputs and that it
should be the IME side which controls the display. Indeed, IME usually
has customizability how delimitation is displayed (in what kind of
color, underlined or highlighted background etc.).

I myself don't have any knowledge about the validity of his patch or
his claim, but is there any reason that LyX should keep the control?
Of course, we should guarantee the robustness for any kinds of
platforms and languages.

# I'm forwarding to lyx-devel too.


Re: Subfigures: \subref support?

2011-05-11 Thread Diego Queiroz
Here is the ticket for this problem.

http://www.lyx.org/trac/ticket/7550

http://www.lyx.org/trac/ticket/7550
---
Diego Queiroz



On Wed, May 11, 2011 at 10:35 AM, Diego Queiroz queiroz.di...@gmail.comwrote:

 Yes I'm sure.


 Yeah, you are right. But this is a LyX bug. It should use a not-so-obvious
 name for the command to prevent a conflict like this.
 However, the command \subref is defined by LyX only when you use the
 Formatted reference. Since I don't use this type of cross-reference, there
 is no problem with my ERT.

 I'll create a ticket for this.

 Cheers,
 ---
 Diego Queiroz



Re: Patch for the CJK InputMethod

2011-05-11 Thread K. Yokota
ps. IME is a WIndows jargon for Input Method.


Re: Problem with xdvi preview on MAC OSX

2011-05-11 Thread Trevor Jenkins
Works for me too.

Mac OS X 10.6.7 (Snow Leopard Server with latest updates but logged in as a
normal user), LyX 2.0 (LyX-2.0.0+qt4 dmg downloaded on 2011-05-10), MacTex
2010 (downloaded from TUG on 2011-05-10).

On Wed, May 11, 2011 at 9:23 AM, Stephan Witt st.w...@gmx.net wrote:

 Am 11.05.2011 um 09:27 schrieb Robert Betz:

  I have recently installed Lyx 2.0 for the MAC (OSX 10.6.7).  I have been
 trying to get the xdvi preview to work -- the Preferences-File
 handling-File Formats-DVI entry has been set up for xdvi by the
 installaton  I have MacTex 2010 installed.
 
  xdvi runs fine from the a Terminal window.  In fact if can run xdvi from
 the temporary directory where dvi file created by Lyx resides. However when
 I try to preview from the Lyx GUI environment it says that the dvi preview
 is successful but the xdvi window never opens. I have opened the messages
 window and the command is being read correctly. The command generated by Lyx
 is exactly the same as the one I use on the terminal command line, which
 runs!
 
  I don't know whether this is a bug or whether it is something that is
 wrong with my system. Asking if anyone else has had this issue.

 Sorry, I tried it and it works on my system - Mac 10.6.7, LyX 2.0, MacTeX
 2009.

 Stephan




-- 
Regards, Trevor.

 Re: deemed!


Re: Anybody helps about img path

2011-05-11 Thread Enrico Forestieri
Julien Rioux writes:
 
 It's possible that there have been some changes in the 2.0 development 
 that broke a call to a .bat script, I'll let someone more knowledgeable 
 answer.

Yes, batch files do not work anymore on Windows. You have to invoke your
batch file as cmd /c file.bat.

-- 
Enrico





Re: Math macros inside child documents

2011-05-11 Thread Guenter Milde
On 2011-05-11, Diego Queiroz wrote:

 [-- Type: text/plain, Encoding:  --]


 But the only one for truly consistent behaviour. If you want to export
 stand-alone, uncheck the master setting.

 Even if the master setting is not set in the child, LyX still display all
 macros perfectly if the master document is open.

This is a bug. (Around LyX 1.4, math-macros were resolved in any
open buffer - related or not.)

 My complaint is this: if LyX is able to interpret things and display them in
 the editor, it should be able to generate the output. That's all.
 Specially if this problem is not present in older versions.

Oh no. If LyX is able to interpret a label defined in some other
document but not in the current one, I would not expect this to work
in LaTeX. Why should math-macros be different?

 No, you can *include* the sub-documents and use the includeonly feature
 to compile a subset of sub-documents where LaTeX will ensure
 (almost) correct page numbers and references and LyX will use the
 parent doc settings instead of the child-doc ones.

 What happens when you set the include only option?
 The whole document is generated and the pages are ommited or it handle the
 pages in a more fashioned way?

TeX \include is specially designed for the master/child concept. Read
about it in the (La)TeX docs.
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=include

 I am asking this because, if LyX handles it in a good way, we can
 change the action of the view button of child docs to automatically
 generate the master document including only the active document. This
 appears suitable for me and is better than blocking.

This was my suggestion for included documents setting a master, while
input document setting a master would defaut to compile/view/export
master. However, I also suggested to use this as *defaults* - allowing
the user to override the consistent behaviour in favour of flexibility.


 Actually, *you* generate the error -- a reference to a label that does
 not exist in the document. Setting a master (currently) is just an
 editing hint but does not change the way a document is compiled
 stand-alone.

 If LyX options were consistent, it won't let me generate such errors.

This is why I wrote what needed to be done for true/strong consistency:
you cannot compile a *.tex document designed for inclusion as a
stand-alone document.

I prefer to live with some amount of inconsistency because otherwise I
would have to use ERT for references to labels I know exist but LyX
doesn't.

 A show output anyway button would be great.
 However, if LyX consistency were assured, there's no need for it (expect
 when using ERT).

... or the LaTeX preamble or an outdated TeX distribution or a package
combination with conflicts or ...

Günter




Re: selecting fonts in xetex

2011-05-11 Thread Guenter Milde
On 2011-05-11, Neal Becker wrote:

 was good.  Only missing a \tt font to go with it.  I tried Deja Sans
 Mono, but the characters look larger than the roman text, not good.
 Also tried Nimbus mono, but it's too thin.

You can scale the fonts with fontspec, e.g.

\setmonofont[HyphenChar=None,Scale=MatchUppercase]{FreeMono}

Günter



Re: Math macros inside child documents

2011-05-11 Thread Diego Queiroz

  A show output anyway button would be great.
  However, if LyX consistency were assured, there's no need for it (expect
  when using ERT).

 ... or the LaTeX preamble (1) or an outdated TeX distribution (2) or a
 package
 combination with conflicts (3) or ... (?)

 Günter


I repeat: if, and only if, LyX consistency were assured, there's no need for
such option (except when using ERT).

What means:
1) In LyX, the LaTeX preamble is an alternative to ERT but it has the same
purpose. So any LaTeX code in LyX will always be a problem to consistency.
If this is your point, I agree with you.
2) In an ideal scenario, LyX could check the LaTeX distribution to see what
resources are available. So an outdated LaTeX should not be a problem.
3) Currently LyX already handles many known packages conflicts. Since
all LyX resources are packages mapped to menu commands, every new package to
be supported should be checked for possible conflicts with all the existent
ones. When this is not possible, LyX should handle the problem in some way
(like preventing the user of using them together).
?) Since these problems are solved, I cannot imagine another problem that is
not related to ERT, file corruption and hardware problems. Otherwise, LyX
can handle it.

Actually, ERTs does exist only to keep LyX flexible, but the ERT goes
against its proposal.


Anyway, let's give up this discussion. It is leading to nowhere.
We're flaming the mailing list. Sorry for this.
---
Diego Queiroz


Re: how to separate pdf file?

2011-05-11 Thread Hady Ariwibowo Teguh
Hi all,
I have tried to split the document by pdf creator. it works but, the link 
cannot work.
Any suggestion?
Thanks
Teguh Hady Ariwibowo
CFD Engineer



--- On Tue, 5/10/11, Julien Rioux jri...@physics.utoronto.ca wrote:

From: Julien Rioux jri...@physics.utoronto.ca
Subject: Re: how to separate pdf file?
To: lyx-users@lists.lyx.org
Date: Tuesday, May 10, 2011, 6:24 PM

On 10/05/2011 6:07 AM, Paul Smith wrote:
 On Tue, May 10, 2011 at 4:20 AM, Hady Ariwibowo Teguh
 huget_te...@ymail.com  wrote:
 i wanna write thesis report in separate pdf file (ex. chap1.pdf, cover.pdf 
 so on). but i dont know how to do it. Any body help me please.

 Teguh,

 Produce a single pdf file, and use pdftk to separate the pdf file by chapters.

 Hope this helps you,

 Paul


Just curious, will pdftk preserve links between chapters? This seems 
rather nontrivial.

-- 
Julien



Re: Subfigures: \subref support?

2011-05-11 Thread Julien Rioux

On 10/05/2011 3:09 PM, Diego Queiroz wrote:

Thanks for the answers.

But I think I wasn't clear.
I want to use the \subref command not the \ref one (supported by default on
LyX).
The difference between them is that \ref produces 1a while \subref
produces only a.

I need to cite subfigures in the caption of the main float.

Example.:
Fig(a) --- Fig(b)
Figure 1: Here you see some figure (a) and another figure (b).

Got it?

But now I'm almost sure LyX really doesn't really support it.
If so, this is another good (and simple) improvement for LyX 2.1. :-)


Cheers,
---
Diego Queiroz



Unfortunately no it is not supported and moreover the macro \subref 
conflicts with the use of refstyle which was implemented in 2.0 (in this 
case \subref is a reference to a subsection and yields subsection 1.1).


So you will have to type a yourself or use TeX code.

Cheers,
Julien


Re: Patch for the CJK InputMethod

2011-05-11 Thread Atsushi Shimmura
On Wed, 11 May 2011 01:40:24 -0400
Julien Rioux jri...@physics.utoronto.ca wrote:


  On Tue, 10 May 2011 22:59:58 -0400
  Julien Riouxjri...@physics.utoronto.ca  wrote:

 Sorry, I meant the display of math preview inside the LyX screen itself. 
 LaTeX is used (in your case platex) to produce a small image file. Then 
 it is displayed on the screen. This is activated in the menu: Tools  
 Preferences  Display. It is called instant preview and has three 
 settings On, Off, and No math. When set to On it should 
 transform your math into an image as I described. From your screenshot 
 it looks like it does not.

I see, is that?

 Regards,
-- 
Atsushi Shimmura a.shimm...@gmail.com
attachment: sample2.jpg

Re: Patch for the CJK InputMethod

2011-05-11 Thread Julien Rioux

On 11/05/2011 2:25 AM, Atsushi Shimmura wrote:

On Wed, 11 May 2011 01:40:24 -0400
Julien Riouxjri...@physics.utoronto.ca  wrote:



On Tue, 10 May 2011 22:59:58 -0400
Julien Riouxjri...@physics.utoronto.ca   wrote:



Sorry, I meant the display of math preview inside the LyX screen itself.
LaTeX is used (in your case platex) to produce a small image file. Then
it is displayed on the screen. This is activated in the menu: Tools
Preferences  Display. It is called instant preview and has three
settings On, Off, and No math. When set to On it should
transform your math into an image as I described. From your screenshot
it looks like it does not.


I see, is that?

  Regards,


Yep that's it.
Thanks,
Julien


Re: Subfigures: \subref support?

2011-05-11 Thread Diego Queiroz

 Unfortunately no it is not supported and moreover the macro \subref
 conflicts with the use of refstyle which was implemented in 2.0 (in this
 case \subref is a reference to a subsection and yields subsection 1.1).

 So you will have to type a yourself or use TeX code.


Are you sure? As stated before, I already solved the problem using ERT.
No conflicts a all.


Problem with xdvi preview on MAC OSX

2011-05-11 Thread Robert Betz
I have recently installed Lyx 2.0 for the MAC (OSX 10.6.7).  I have been trying 
to get the xdvi preview to work -- the Preferences-File handling-File 
Formats-DVI entry has been set up for xdvi by the installaton  I have MacTex 
2010 installed. 

xdvi runs fine from the a Terminal window.  In fact if can run xdvi from the 
temporary directory where dvi file created by Lyx resides. However when I try 
to preview from the Lyx GUI environment it says that the dvi preview is 
successful but the xdvi window never opens. I have opened the messages window 
and the command is being read correctly. The command generated by Lyx is 
exactly the same as the one I use on the terminal command line, which runs! 

I don't know whether this is a bug or whether it is something that is wrong 
with my system. Asking if anyone else has had this issue. 

Thanks. 


Regards


Bob Betz



-

Dr. Robert Betz
Ampcontrol Professor of Power Engineering,
Head, School of Electrical Engineering and Computer Science,
Faculty of Engineering and Built Environment,
University of Newcastle, Australia,

email: robert.b...@newcastle.edu.au
FAX: +61-2-4921-6993
TEL: +61-2-4921-6091
Mobile: (+61)-(0)419249948
Web: http://eecsbobb.newcastle.edu.au/rebetz

-













Re: selecting fonts in xetex

2011-05-11 Thread Guenter Milde
On 2011-05-10, Neal Becker wrote:

 I'm interested in trying out xetex.  Any suggestions for font settings
 to try (free, widely available)?  This is fedora 14, have stix fonts.

This very much depends on what you want to achieve.
As with XeTeX, you can use system fonts, this leaves the realm of TeX
and you can follow the advise of the typesetting gurus.

Some links:
http://en.wikipedia.org/wiki/Typophile_%28Internet_Forum%29
http://praegnanz.de/essays/freie-schriften-anspruch-und-wirklichkeit
(German)
http://www.100besteschriften.de/ (German)

If you want matching math fonts, the selection becomes considerably
narrower.

 How are math fonts selected?

By default, math fonts are not changed and still taken from the 8-bit
encoded CM fonts.

To configure math fonts, there are two options:

a) load a traditional math-font package like fourier, txfonts or
   qtxfonts or mathdesign or kpmath or ...
   *before* configuring the text fonts.
   
   In LyX this means to leave the Font GUI at [Default], read the
   fontconfig documentation and configure text fonts in the LaTeX
   preamble, e.g. 
   
   % Requirements
   \usepackage{fourier}
   
   % Text font
   \usepackage[no-math]{fontspec}
   \usepackage{xunicode}
   \setmainfont[BoldFont={XITS Bold},ItalicFont={XITS Italic}]{XITS Math}
   \setsansfont{DejaVu Sans}
   % \setmonofont[HyphenChar=None,Scale=MatchUppercase]{DejaVu Sans Mono}
   \setmonofont[HyphenChar=None,Scale=MatchUppercase]{FreeMono}

b) use the experimental unicode-math package 
   http://ctan.org/pkg/unicode-math
   with one of the few OpenType Math fonts Asana-Math, XITS, Cambria-Math
   (from MS-Word), NeuEuler or (the soon to be released) LM-Math.
   
   Again, you need to call and configure this in the LaTeX preamble.
   See the comprehensive package documentation
   http://mirror.ctan.org/macros/latex/contrib/unicode-math/unicode-math.pdf
  
   As this is hithero not tested with LyX, you might expect some
   incompatibilities and problems.

Günter



Re: Using non-computer modern numbers in lyx 2.0

2011-05-11 Thread Guenter Milde
On 2011-05-10, Tom Wood wrote:

 [-- Type: text/plain, Encoding:  --]

 First, thanks for the integration of XeTeX and LuaTeX and LyX. LyX is now a
 brilliant tool.

 One problem remains- I'm sure there's a very simple fix for this, so I
 apologize in advance if I've missed something obvious.

 I use ERT to bring statistical tables from R, an open source statistics
 language. This works great, except that the numbers in these tables remain
 Latin Modern, rather than whatever font I've used with XeTeX. I've attached
 the compiled pdf and the lyx file.

 Is there an easy way to ensure that the numbers in the table match the font
 used in the text and the table?

Are the number in math mode? Math fonts are not changed by the
non-TeX fonts GUI.

Either change this to be in text mode, or see my post on the which
fonts with xetex thread.

Günter



Re: Math macros inside child documents

2011-05-11 Thread Guenter Milde
On 2011-05-10, Diego Queiroz wrote:

  For truly consistent behaviour, we would have to disable stand-alone
  compilation of documents setting a master (except for included (vs.
  input) documents).

 This is a strong restriction.

But the only one for truly consistent behaviour. If you want to export
stand-alone, uncheck the master setting.

 With this, in a document with thousand of pages I will obligated to
 generate all pages? I do not agree.

No, you can *include* the sub-documents and use the includeonly feature
to compile a subset of sub-documents where LaTeX will ensure
(almost) correct page numbers and references and LyX will use the
parent doc settings instead of the child-doc ones.

  Actually, I regularly compile stand-alone child docs (to save time on
  checking the appearance in the output). I have set up a stand-alone
  branch for math-macros and bibliography and I can live with the
  question marks in the references.

 This is another subject, but let's understand the question marks are a
 problem to be solved too.

This is solved by using include and includeonly instead of
stand-alone compilation.
I do not think that LyX must re-implement this feature.

 I think it would be good if LyX doesn't generate so much errors, 

Actually, *you* generate the error -- a reference to a label that does
not exist in the document. Setting a master (currently) is just an
editing hint but does not change the way a document is compiled
stand-alone.

Maybe there could be better visual feedback in
LyX, but this requires that the buffer is aware of the intended use:

a) compile the master
b) compile the master but includeonly the child
c) compile the child stand-alone

Maybe a configurable default-action for the compile buttons (and View...
menu items) could trigger the matching feedback in the buffer.
(With the default-default action for documents that set the master and 

   are input- a)
   are included - b)
)

 but I vote against the generation of documents with wrong content
 (i.e. the question marks). Otherwise, LyX could not stop on the first
 error, as it already do today. That is, currently, if a error is found,
 LyX just stops and warns the user. Even if the document can still be
 generated by LaTeX. We didn't define LyX to just continue and see what
 you get because we don't want this, right?

I am not sure about this. If I remember right, the LaTeX run is done in
nonstopmode but the output not opened in a viewer - I'd like a
show output anyway button in the error message dialogue. Having
a look at the output is sometimes far more helpful than TeX error
messages.

 In the worst case, I'm in favor of a warning to the user about these wrong
 things.

I prefer this continue but warn, so that e.g. unresolved references
[??] do not go unnoticed but do not prevent me from checking page breaks
or the position of floats.

...

Günter



Re: Problem with xdvi preview on MAC OSX

2011-05-11 Thread Stephan Witt
Am 11.05.2011 um 09:27 schrieb Robert Betz:

 I have recently installed Lyx 2.0 for the MAC (OSX 10.6.7).  I have been 
 trying to get the xdvi preview to work -- the Preferences-File 
 handling-File Formats-DVI entry has been set up for xdvi by the installaton 
  I have MacTex 2010 installed.
 
 xdvi runs fine from the a Terminal window.  In fact if can run xdvi from the 
 temporary directory where dvi file created by Lyx resides. However when I try 
 to preview from the Lyx GUI environment it says that the dvi preview is 
 successful but the xdvi window never opens. I have opened the messages window 
 and the command is being read correctly. The command generated by Lyx is 
 exactly the same as the one I use on the terminal command line, which runs!
 
 I don't know whether this is a bug or whether it is something that is wrong 
 with my system. Asking if anyone else has had this issue.

Sorry, I tried it and it works on my system - Mac 10.6.7, LyX 2.0, MacTeX 2009.

Stephan

Re: Need help getting APA citing working

2011-05-11 Thread Julio Rojas
It works, only not it seems not to work with Natbib. From apacite's manual:

I consider natbib as the de facto standard with which other packages should
be compatible.
Unfortunately, apacite is still not entirely compatible with natbib. The
main incompatibility is that
different citation commands are used, so that it is not possible to use the
same document with
natbib or apacite.

Regards.

-
Julio Rojas
jcredbe...@gmail.com


On Wed, May 11, 2011 at 7:35 AM, Julien Rioux jri...@physics.utoronto.cawrote:

 On 11/05/2011 1:07 AM, Mark Livingstone wrote:

 Hello!

 I am commencing my B.InfoTech (Hons) and want to use Lyx for reports,
 thesis
 etc. I have installed the new Lyx 2.0 on my Macbook Pro and am using up to
 date Mactex live from the mirror.aarnet.edu.au mirror) and am
 experimenting
 using the article (KOMA-Script) document class. Into my document, I have
 inserted a Bibtex generated Bibliography, selected Natbib Author-year,
 using
 apacite and pointed it at my marklivingstone.bib file. I typed some text
 and inserted some trial citations selecting (author, year) type citation
 as
 appropriate for varying numbers of authors.

 When I do an update, and view, I get a beautiful result, but the citations
 use and instead of , and the volume numbers are not italicised.

 Before bothering you guys, I went to the Wiki and found the APALyX page. I
 downloaded the ApaExample.lyx which I note also uses apacite and which
 has
 correctly done ampersand signs and volume number citation style. This
 tells
 me I must have all the requisite class / style / etc files. Unfortunately,
 I
 am very new to Latex / Lyx, and I don't know how to fix my citations. I
 considered using the ApaExample.lyx but its stylistic elements are just
 too
 far from my desired requirements. I don't want their style, just their
 citation format ;-)

 On the ApaLyX page, it says you will need an apa.layout file and says to
 get
 it (and doesn't say where from!)

 Thanks in advance,

 MarkL


 Hi,

 First, apa.layout is nowadays shipped with the regular install of LyX.

 Second, you might try to put the following line in the LaTeX preamble
 (Document  Settings  LaTeX preamble)

 \usepackage{apacite}

 (not tested)

 --
 Julien



Re: Need help getting APA citing working

2011-05-11 Thread stefano franchi
On Wed, May 11, 2011 at 5:04 AM, Julio Rojas jcredbe...@gmail.com wrote:
 It works, only not it seems not to work with Natbib. From apacite's manual:
 I consider natbib as the de facto standard with which other packages should
 be compatible.
 Unfortunately, apacite is still not entirely compatible with natbib. The
 main incompatibility is that
 different citation commands are used, so that it is not possible to use the
 same document with
 natbib or apacite.
 Regards.

You may consider switching to biblatex (from standard bibtex) and
using the biblatex-apa style (http://www.ctan.org/pkg/biblatex-apa).
Biblatex is not completely integrated with Lyx yet, so you may have to
write a few commands in ERT (i.e. pure Latex), but it works fairly
well once you get the hang of it. Look at the wikipages to get started
(http://wiki.lyx.org/BibTeX/Biblatex). I switched to using biblatex  a
couple of years ago and have no regrets---it is much more flexible and
powerful than bibtex. Moreover, it is clearly the way forward for
managing bibliographies in latex/Lyx. It is actively developed, with
an increasing user base, etc. If you are just starting in Lyx/Latex,
it may be wise to learn how to use it. However, I have no experience
with biblatex-apa. You may want to look at the manual to see if it
fits your needs.

Cheers,

Stefano


Re: Subfigures: \subref support?

2011-05-11 Thread Julien Rioux

On 11/05/2011 3:16 AM, Diego Queiroz wrote:


Unfortunately no it is not supported and moreover the macro \subref
conflicts with the use of refstyle which was implemented in 2.0 (in this
case \subref is a reference to a subsection and yields subsection 1.1).

So you will have to type a yourself or use TeX code.



Are you sure? As stated before, I already solved the problem using ERT.
No conflicts a all.



Yes I'm sure.

- Have a label sub:mysection in a subsection.
- Insert a reference to it using Formatted reference format.
- Make sure refstyle is used instead of prettyref (this is changed in 
document settings Document class ; refstyle is the default for new docs)


So far all this works. LyX generates \subref{mysection}, which is the 
refstyle syntax for that.


Now if you also use a subfloat within a float you get a conflict. 
Because subfloat also defines a \subref macro. The conflict is silent... 
but you get [??] in output.


Avoid this combination and you're safe.

Cheers,
Julien


Re: Subfigures: \subref support?

2011-05-11 Thread Diego Queiroz

 Yes I'm sure.


Yeah, you are right. But this is a LyX bug. It should use a not-so-obvious
name for the command to prevent a conflict like this.
However, the command \subref is defined by LyX only when you use the
Formatted reference. Since I don't use this type of cross-reference, there
is no problem with my ERT.

I'll create a ticket for this.

Cheers,
---
Diego Queiroz


Re: selecting fonts in xetex

2011-05-11 Thread Neal Becker
Guenter Milde wrote:

 On 2011-05-10, Neal Becker wrote:
 
 I'm interested in trying out xetex.  Any suggestions for font settings
 to try (free, widely available)?  This is fedora 14, have stix fonts.
 
 This very much depends on what you want to achieve.
 As with XeTeX, you can use system fonts, this leaves the realm of TeX
 and you can follow the advise of the typesetting gurus.
 
 Some links:
 http://en.wikipedia.org/wiki/Typophile_%28Internet_Forum%29
 http://praegnanz.de/essays/freie-schriften-anspruch-und-wirklichkeit
 (German)
 http://www.100besteschriften.de/ (German)
 
 If you want matching math fonts, the selection becomes considerably
 narrower.
 
 How are math fonts selected?
 
 By default, math fonts are not changed and still taken from the 8-bit
 encoded CM fonts.
 
 To configure math fonts, there are two options:
 
 a) load a traditional math-font package like fourier, txfonts or
qtxfonts or mathdesign or kpmath or ...
*before* configuring the text fonts.

In LyX this means to leave the Font GUI at [Default], read the
fontconfig documentation and configure text fonts in the LaTeX
preamble, e.g.

% Requirements
\usepackage{fourier}

% Text font
\usepackage[no-math]{fontspec}
\usepackage{xunicode}
\setmainfont[BoldFont={XITS Bold},ItalicFont={XITS Italic}]{XITS Math}
\setsansfont{DejaVu Sans}
% \setmonofont[HyphenChar=None,Scale=MatchUppercase]{DejaVu Sans Mono}
\setmonofont[HyphenChar=None,Scale=MatchUppercase]{FreeMono}
 
 b) use the experimental unicode-math package
http://ctan.org/pkg/unicode-math
with one of the few OpenType Math fonts Asana-Math, XITS, Cambria-Math
(from MS-Word), NeuEuler or (the soon to be released) LM-Math.

Again, you need to call and configure this in the LaTeX preamble.
See the comprehensive package documentation
http://mirror.ctan.org/macros/latex/contrib/unicode-math/unicode-math.pdf
   
As this is hithero not tested with LyX, you might expect some
incompatibilities and problems.
 
 Günter

Thanks!  I found setting 
roman - XITS
+
\usepackage{unicode-math}
\setmathfont{XITS Math}

was good.  Only missing a \tt font to go with it.  I tried Deja Sans Mono, but 
the characters look larger than the roman text, not good.  Also tried Nimbus 
mono, but it's too thin.



Re: selecting fonts in xetex

2011-05-11 Thread Bruce Pourciau


On May 11, 2011, at 2:32 AM, Guenter Milde wrote:


How are math fonts selected?


By default, math fonts are not changed and still taken from the 8-bit
encoded CM fonts.

To configure math fonts, there are two options:


You could also, within LyX, use the mathpazo package: In Document  
Settings  Fonts choose Palatino and check Small Caps and Old Style  
figures. This gives you Zapf's lovely Palatino for text and symbols  
for mathematics that have been redrawn (Palatino'd) to blend well with  
the text.


Bruce



Re: selecting fonts in xetex

2011-05-11 Thread Neal Becker
Bruce Pourciau wrote:

 
 On May 11, 2011, at 2:32 AM, Guenter Milde wrote:
 
 How are math fonts selected?

 By default, math fonts are not changed and still taken from the 8-bit
 encoded CM fonts.

 To configure math fonts, there are two options:
 
 You could also, within LyX, use the mathpazo package: In Document
 Settings  Fonts choose Palatino and check Small Caps and Old Style
 figures. This gives you Zapf's lovely Palatino for text and symbols
 for mathematics that have been redrawn (Palatino'd) to blend well with
 the text.
 
 Bruce

Unfortunately, on my setup (texlive-2010) Palatino seems quite broken.  Every 
character seems to be underined (load of errors in log), and all text chars are 
blank.



Re: Math macros inside child documents

2011-05-11 Thread Diego Queiroz

 But the only one for truly consistent behaviour. If you want to export
 stand-alone, uncheck the master setting.


Even if the master setting is not set in the child, LyX still display all
macros perfectly if the master document is open.
My complaint is this: if LyX is able to interpret things and display them in
the editor, it should be able to generate the output. That's all.
Specially if this problem is not present in older versions.

No, you can *include* the sub-documents and use the includeonly feature
 to compile a subset of sub-documents where LaTeX will ensure
 (almost) correct page numbers and references and LyX will use the
 parent doc settings instead of the child-doc ones.


What happens when you set the include only option?
The whole document is generated and the pages are ommited or it handle the
pages in a more fashioned way?

I am asking this because, if LyX handles it in a good way, we can change the
action of the view button of child docs to automatically generate the master
document including only the active document. This appears suitable for me
and is better than blocking.


 Actually, *you* generate the error -- a reference to a label that does
 not exist in the document. Setting a master (currently) is just an
 editing hint but does not change the way a document is compiled
 stand-alone.


If LyX options were consistent, it won't let me generate such errors.
It doesn't really matter if I am responsible for them or not: computers are
here to handle problems we don't want to deal with, right? They are not here
to introduce another class of problems (although I agree this is not always
true :-) .


 I am not sure about this. If I remember right, the LaTeX run is done in
 nonstopmode but the output not opened in a viewer - I'd like a
 show output anyway button in the error message dialogue. Having
 a look at the output is sometimes far more helpful than TeX error
 messages.


A show output anyway button would be great.
However, if LyX consistency were assured, there's no need for it (expect
when using ERT).

---
Diego Queiroz


Re: Patch for the CJK InputMethod

2011-05-11 Thread K. Yokota
2011/5/11 Julien Rioux jri...@physics.utoronto.ca:
 This looks interesting. So it delimits the words in a long sentence, is that
 right? I am not sure I understand.

I think he wants to say that somehow LyX has its own settings for
displaying delimitation when IME converts keyboard inputs and that it
should be the IME side which controls the display. Indeed, IME usually
has customizability how delimitation is displayed (in what kind of
color, underlined or highlighted background etc.).

I myself don't have any knowledge about the validity of his patch or
his claim, but is there any reason that LyX should keep the control?
Of course, we should guarantee the robustness for any kinds of
platforms and languages.

# I'm forwarding to lyx-devel too.


Re: Subfigures: \subref support?

2011-05-11 Thread Diego Queiroz
Here is the ticket for this problem.

http://www.lyx.org/trac/ticket/7550

http://www.lyx.org/trac/ticket/7550
---
Diego Queiroz



On Wed, May 11, 2011 at 10:35 AM, Diego Queiroz queiroz.di...@gmail.comwrote:

 Yes I'm sure.


 Yeah, you are right. But this is a LyX bug. It should use a not-so-obvious
 name for the command to prevent a conflict like this.
 However, the command \subref is defined by LyX only when you use the
 Formatted reference. Since I don't use this type of cross-reference, there
 is no problem with my ERT.

 I'll create a ticket for this.

 Cheers,
 ---
 Diego Queiroz



Re: Patch for the CJK InputMethod

2011-05-11 Thread K. Yokota
ps. IME is a WIndows jargon for Input Method.


Re: Problem with xdvi preview on MAC OSX

2011-05-11 Thread Trevor Jenkins
Works for me too.

Mac OS X 10.6.7 (Snow Leopard Server with latest updates but logged in as a
normal user), LyX 2.0 (LyX-2.0.0+qt4 dmg downloaded on 2011-05-10), MacTex
2010 (downloaded from TUG on 2011-05-10).

On Wed, May 11, 2011 at 9:23 AM, Stephan Witt st.w...@gmx.net wrote:

 Am 11.05.2011 um 09:27 schrieb Robert Betz:

  I have recently installed Lyx 2.0 for the MAC (OSX 10.6.7).  I have been
 trying to get the xdvi preview to work -- the Preferences-File
 handling-File Formats-DVI entry has been set up for xdvi by the
 installaton  I have MacTex 2010 installed.
 
  xdvi runs fine from the a Terminal window.  In fact if can run xdvi from
 the temporary directory where dvi file created by Lyx resides. However when
 I try to preview from the Lyx GUI environment it says that the dvi preview
 is successful but the xdvi window never opens. I have opened the messages
 window and the command is being read correctly. The command generated by Lyx
 is exactly the same as the one I use on the terminal command line, which
 runs!
 
  I don't know whether this is a bug or whether it is something that is
 wrong with my system. Asking if anyone else has had this issue.

 Sorry, I tried it and it works on my system - Mac 10.6.7, LyX 2.0, MacTeX
 2009.

 Stephan




-- 
Regards, Trevor.

 Re: deemed!


Re: Anybody helps about img path

2011-05-11 Thread Enrico Forestieri
Julien Rioux writes:
 
 It's possible that there have been some changes in the 2.0 development 
 that broke a call to a .bat script, I'll let someone more knowledgeable 
 answer.

Yes, batch files do not work anymore on Windows. You have to invoke your
batch file as cmd /c file.bat.

-- 
Enrico





Re: Math macros inside child documents

2011-05-11 Thread Guenter Milde
On 2011-05-11, Diego Queiroz wrote:

 [-- Type: text/plain, Encoding:  --]


 But the only one for truly consistent behaviour. If you want to export
 stand-alone, uncheck the master setting.

 Even if the master setting is not set in the child, LyX still display all
 macros perfectly if the master document is open.

This is a bug. (Around LyX 1.4, math-macros were resolved in any
open buffer - related or not.)

 My complaint is this: if LyX is able to interpret things and display them in
 the editor, it should be able to generate the output. That's all.
 Specially if this problem is not present in older versions.

Oh no. If LyX is able to interpret a label defined in some other
document but not in the current one, I would not expect this to work
in LaTeX. Why should math-macros be different?

 No, you can *include* the sub-documents and use the includeonly feature
 to compile a subset of sub-documents where LaTeX will ensure
 (almost) correct page numbers and references and LyX will use the
 parent doc settings instead of the child-doc ones.

 What happens when you set the include only option?
 The whole document is generated and the pages are ommited or it handle the
 pages in a more fashioned way?

TeX \include is specially designed for the master/child concept. Read
about it in the (La)TeX docs.
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=include

 I am asking this because, if LyX handles it in a good way, we can
 change the action of the view button of child docs to automatically
 generate the master document including only the active document. This
 appears suitable for me and is better than blocking.

This was my suggestion for included documents setting a master, while
input document setting a master would defaut to compile/view/export
master. However, I also suggested to use this as *defaults* - allowing
the user to override the consistent behaviour in favour of flexibility.


 Actually, *you* generate the error -- a reference to a label that does
 not exist in the document. Setting a master (currently) is just an
 editing hint but does not change the way a document is compiled
 stand-alone.

 If LyX options were consistent, it won't let me generate such errors.

This is why I wrote what needed to be done for true/strong consistency:
you cannot compile a *.tex document designed for inclusion as a
stand-alone document.

I prefer to live with some amount of inconsistency because otherwise I
would have to use ERT for references to labels I know exist but LyX
doesn't.

 A show output anyway button would be great.
 However, if LyX consistency were assured, there's no need for it (expect
 when using ERT).

... or the LaTeX preamble or an outdated TeX distribution or a package
combination with conflicts or ...

Günter




Re: selecting fonts in xetex

2011-05-11 Thread Guenter Milde
On 2011-05-11, Neal Becker wrote:

 was good.  Only missing a \tt font to go with it.  I tried Deja Sans
 Mono, but the characters look larger than the roman text, not good.
 Also tried Nimbus mono, but it's too thin.

You can scale the fonts with fontspec, e.g.

\setmonofont[HyphenChar=None,Scale=MatchUppercase]{FreeMono}

Günter



Re: Math macros inside child documents

2011-05-11 Thread Diego Queiroz

  A show output anyway button would be great.
  However, if LyX consistency were assured, there's no need for it (expect
  when using ERT).

 ... or the LaTeX preamble (1) or an outdated TeX distribution (2) or a
 package
 combination with conflicts (3) or ... (?)

 Günter


I repeat: if, and only if, LyX consistency were assured, there's no need for
such option (except when using ERT).

What means:
1) In LyX, the LaTeX preamble is an alternative to ERT but it has the same
purpose. So any LaTeX code in LyX will always be a problem to consistency.
If this is your point, I agree with you.
2) In an ideal scenario, LyX could check the LaTeX distribution to see what
resources are available. So an outdated LaTeX should not be a problem.
3) Currently LyX already handles many known packages conflicts. Since
all LyX resources are packages mapped to menu commands, every new package to
be supported should be checked for possible conflicts with all the existent
ones. When this is not possible, LyX should handle the problem in some way
(like preventing the user of using them together).
?) Since these problems are solved, I cannot imagine another problem that is
not related to ERT, file corruption and hardware problems. Otherwise, LyX
can handle it.

Actually, ERTs does exist only to keep LyX flexible, but the ERT goes
against its proposal.


Anyway, let's give up this discussion. It is leading to nowhere.
We're flaming the mailing list. Sorry for this.
---
Diego Queiroz


Re: how to separate pdf file?

2011-05-11 Thread Hady Ariwibowo Teguh
Hi all,
I have tried to split the document by pdf creator. it works but, the link 
cannot work.
Any suggestion?
Thanks
Teguh Hady Ariwibowo
CFD Engineer



--- On Tue, 5/10/11, Julien Rioux jri...@physics.utoronto.ca wrote:

From: Julien Rioux jri...@physics.utoronto.ca
Subject: Re: how to separate pdf file?
To: lyx-users@lists.lyx.org
Date: Tuesday, May 10, 2011, 6:24 PM

On 10/05/2011 6:07 AM, Paul Smith wrote:
 On Tue, May 10, 2011 at 4:20 AM, Hady Ariwibowo Teguh
 huget_te...@ymail.com  wrote:
 i wanna write thesis report in separate pdf file (ex. chap1.pdf, cover.pdf 
 so on). but i dont know how to do it. Any body help me please.

 Teguh,

 Produce a single pdf file, and use pdftk to separate the pdf file by chapters.

 Hope this helps you,

 Paul


Just curious, will pdftk preserve links between chapters? This seems 
rather nontrivial.

-- 
Julien



Re: Subfigures: \subref support?

2011-05-11 Thread Julien Rioux

On 10/05/2011 3:09 PM, Diego Queiroz wrote:

Thanks for the answers.

But I think I wasn't clear.
I want to use the \subref command not the \ref one (supported by default on
LyX).
The difference between them is that \ref produces "1a" while \subref
produces only "a".

I need to cite subfigures in the caption of the main float.

Example.:
Fig(a) --- Fig(b)
Figure 1: Here you see some figure (a) and another figure (b).

Got it?

But now I'm almost sure LyX really doesn't really support it.
If so, this is another good (and simple) improvement for LyX 2.1. :-)


Cheers,
---
Diego Queiroz



Unfortunately no it is not supported and moreover the macro \subref 
conflicts with the use of refstyle which was implemented in 2.0 (in this 
case \subref is a reference to a subsection and yields "subsection 1.1").


So you will have to type "a" yourself or use TeX code.

Cheers,
Julien


Re: Patch for the CJK InputMethod

2011-05-11 Thread Atsushi Shimmura
On Wed, 11 May 2011 01:40:24 -0400
Julien Rioux  wrote:


> > On Tue, 10 May 2011 22:59:58 -0400
> > Julien Rioux  wrote:

> Sorry, I meant the display of math preview inside the LyX screen itself. 
> LaTeX is used (in your case platex) to produce a small image file. Then 
> it is displayed on the screen. This is activated in the menu: Tools > 
> Preferences > Display. It is called "instant preview" and has three 
> settings "On", "Off", and "No math". When set to "On" it should 
> transform your math into an image as I described. From your screenshot 
> it looks like it does not.

I see, is that?

 Regards,
-- 
Atsushi Shimmura 
<>

Re: Patch for the CJK InputMethod

2011-05-11 Thread Julien Rioux

On 11/05/2011 2:25 AM, Atsushi Shimmura wrote:

On Wed, 11 May 2011 01:40:24 -0400
Julien Rioux  wrote:



On Tue, 10 May 2011 22:59:58 -0400
Julien Rioux   wrote:



Sorry, I meant the display of math preview inside the LyX screen itself.
LaTeX is used (in your case platex) to produce a small image file. Then
it is displayed on the screen. This is activated in the menu: Tools>
Preferences>  Display. It is called "instant preview" and has three
settings "On", "Off", and "No math". When set to "On" it should
transform your math into an image as I described. From your screenshot
it looks like it does not.


I see, is that?

  Regards,


Yep that's it.
Thanks,
Julien


Re: Subfigures: \subref support?

2011-05-11 Thread Diego Queiroz
>
> Unfortunately no it is not supported and moreover the macro \subref
> conflicts with the use of refstyle which was implemented in 2.0 (in this
> case \subref is a reference to a subsection and yields "subsection 1.1").
>
> So you will have to type "a" yourself or use TeX code.
>
>
Are you sure? As stated before, I already solved the problem using ERT.
No conflicts a all.


Problem with xdvi preview on MAC OSX

2011-05-11 Thread Robert Betz
I have recently installed Lyx 2.0 for the MAC (OSX 10.6.7).  I have been trying 
to get the xdvi preview to work -- the Preferences->File handling->File 
Formats->DVI entry has been set up for xdvi by the installaton  I have MacTex 
2010 installed. 

xdvi runs fine from the a Terminal window.  In fact if can run xdvi from the 
temporary directory where dvi file created by Lyx resides. However when I try 
to preview from the Lyx GUI environment it says that the dvi preview is 
successful but the xdvi window never opens. I have opened the messages window 
and the command is being read correctly. The command generated by Lyx is 
exactly the same as the one I use on the terminal command line, which runs! 

I don't know whether this is a bug or whether it is something that is wrong 
with my system. Asking if anyone else has had this issue. 

Thanks. 


Regards


Bob Betz



-

Dr. Robert Betz
Ampcontrol Professor of Power Engineering,
Head, School of Electrical Engineering and Computer Science,
Faculty of Engineering and Built Environment,
University of Newcastle, Australia,

email: robert.b...@newcastle.edu.au
FAX: +61-2-4921-6993
TEL: +61-2-4921-6091
Mobile: (+61)-(0)419249948
Web: http://eecsbobb.newcastle.edu.au/rebetz

-













Re: selecting fonts in xetex

2011-05-11 Thread Guenter Milde
On 2011-05-10, Neal Becker wrote:

> I'm interested in trying out xetex.  Any suggestions for font settings
> to try (free, widely available)?  This is fedora 14, have stix fonts.

This very much depends on what you want to achieve.
As with XeTeX, you can use system fonts, this leaves the realm of TeX
and you can follow the advise of the typesetting gurus.

Some links:
http://en.wikipedia.org/wiki/Typophile_%28Internet_Forum%29
http://praegnanz.de/essays/freie-schriften-anspruch-und-wirklichkeit
(German)
http://www.100besteschriften.de/ (German)

If you want matching math fonts, the selection becomes considerably
narrower.

> How are math fonts selected?

By default, math fonts are not changed and still taken from the 8-bit
encoded CM fonts.

To configure math fonts, there are two options:

a) load a traditional math-font package like fourier, txfonts or
   qtxfonts or mathdesign or kpmath or ...
   *before* configuring the text fonts.
   
   In LyX this means to leave the Font GUI at [Default], read the
   fontconfig documentation and configure text fonts in the LaTeX
   preamble, e.g. 
   
   % Requirements
   \usepackage{fourier}
   
   % Text font
   \usepackage[no-math]{fontspec}
   \usepackage{xunicode}
   \setmainfont[BoldFont={XITS Bold},ItalicFont={XITS Italic}]{XITS Math}
   \setsansfont{DejaVu Sans}
   % \setmonofont[HyphenChar=None,Scale=MatchUppercase]{DejaVu Sans Mono}
   \setmonofont[HyphenChar=None,Scale=MatchUppercase]{FreeMono}

b) use the experimental "unicode-math" package 
   http://ctan.org/pkg/unicode-math
   with one of the few OpenType Math fonts Asana-Math, XITS, Cambria-Math
   (from MS-Word), NeuEuler or (the soon to be released) LM-Math.
   
   Again, you need to call and configure this in the LaTeX preamble.
   See the comprehensive package documentation
   http://mirror.ctan.org/macros/latex/contrib/unicode-math/unicode-math.pdf
  
   As this is hithero not tested with LyX, you might expect some
   incompatibilities and problems.

Günter



Re: Using non-computer modern numbers in lyx 2.0

2011-05-11 Thread Guenter Milde
On 2011-05-10, Tom Wood wrote:

> [-- Type: text/plain, Encoding:  --]

> First, thanks for the integration of XeTeX and LuaTeX and LyX. LyX is now a
> brilliant tool.

> One problem remains- I'm sure there's a very simple fix for this, so I
> apologize in advance if I've missed something obvious.

> I use ERT to bring statistical tables from R, an open source statistics
> language. This works great, except that the numbers in these tables remain
> Latin Modern, rather than whatever font I've used with XeTeX. I've attached
> the compiled pdf and the lyx file.

> Is there an easy way to ensure that the numbers in the table match the font
> used in the text and the table?

Are the number in math mode? Math fonts are not changed by the
"non-TeX fonts" GUI.

Either change this to be in text mode, or see my post on the "which
fonts with xetex" thread.

Günter



Re: Math macros inside child documents

2011-05-11 Thread Guenter Milde
On 2011-05-10, Diego Queiroz wrote:

>> >>> For truly consistent behaviour, we would have to disable stand-alone
>> >>> compilation of documents setting a master (except for "included" (vs.
>> >>> "input") documents).

> This is a strong restriction.

But the only one for truly consistent behaviour. If you want to export
stand-alone, uncheck the master setting.

> With this, in a document with thousand of pages I will obligated to
> generate all pages? I do not agree.

No, you can *include* the sub-documents and use the includeonly feature
to compile a subset of sub-documents where LaTeX will ensure
(almost) correct page numbers and references and LyX will use the
parent doc settings instead of the child-doc ones.

>> > Actually, I regularly compile stand-alone child docs (to save time on
>> > checking the appearance in the output). I have set up a "stand-alone"
>> > branch for math-macros and bibliography and I can live with the
>> > question marks in the references.

> This is another subject, but let's understand the question marks are a
> problem to be solved too.

This is solved by using "include" and "includeonly" instead of
stand-alone compilation.
I do not think that LyX must re-implement this feature.

> I think it would be good if LyX doesn't generate so much errors, 

Actually, *you* generate the error -- a reference to a label that does
not exist in the document. Setting a master (currently) is just an
"editing hint" but does not change the way a document is compiled
stand-alone.

Maybe there could be better visual feedback in
LyX, but this requires that the buffer is aware of the intended use:

a) compile the master
b) compile the master but "includeonly" the child
c) compile the child stand-alone

Maybe a configurable default-action for the compile buttons (and View>...
menu items) could trigger the matching feedback in the buffer.
(With the default-default action for documents that set the master and 

   are input-> a)
   are included -> b)
)

> but I vote against the generation of documents with "wrong" content
> (i.e. the question marks). Otherwise, LyX could not stop on the first
> error, as it already do today. That is, currently, if a error is found,
> LyX just stops and warns the user. Even if the document can still be
> generated by LaTeX. We didn't define LyX to "just continue and see what
> you get" because we don't want this, right?

I am not sure about this. If I remember right, the LaTeX run is done in
nonstopmode but the output not opened in a viewer -> I'd like a
"show output anyway" button in the error message dialogue. Having
a look at the output is sometimes far more helpful than TeX error
messages.

> In the worst case, I'm in favor of a warning to the user about these "wrong"
> things.

I prefer this "continue but warn", so that e.g. unresolved references
[??] do not go unnoticed but do not prevent me from checking page breaks
or the position of floats.

...

Günter



Re: Problem with xdvi preview on MAC OSX

2011-05-11 Thread Stephan Witt
Am 11.05.2011 um 09:27 schrieb Robert Betz:

> I have recently installed Lyx 2.0 for the MAC (OSX 10.6.7).  I have been 
> trying to get the xdvi preview to work -- the Preferences->File 
> handling->File Formats->DVI entry has been set up for xdvi by the installaton 
>  I have MacTex 2010 installed.
> 
> xdvi runs fine from the a Terminal window.  In fact if can run xdvi from the 
> temporary directory where dvi file created by Lyx resides. However when I try 
> to preview from the Lyx GUI environment it says that the dvi preview is 
> successful but the xdvi window never opens. I have opened the messages window 
> and the command is being read correctly. The command generated by Lyx is 
> exactly the same as the one I use on the terminal command line, which runs!
> 
> I don't know whether this is a bug or whether it is something that is wrong 
> with my system. Asking if anyone else has had this issue.

Sorry, I tried it and it works on my system - Mac 10.6.7, LyX 2.0, MacTeX 2009.

Stephan

Re: Need help getting APA citing working

2011-05-11 Thread Julio Rojas
It works, only not it seems not to work with Natbib. From apacite's manual:

I consider natbib as the de facto standard with which other packages should
be compatible.
Unfortunately, apacite is still not entirely compatible with natbib. The
main incompatibility is that
different citation commands are used, so that it is not possible to use the
same document with
natbib or apacite.

Regards.

-
Julio Rojas
jcredbe...@gmail.com


On Wed, May 11, 2011 at 7:35 AM, Julien Rioux wrote:

> On 11/05/2011 1:07 AM, Mark Livingstone wrote:
>
>> Hello!
>>
>> I am commencing my B.InfoTech (Hons) and want to use Lyx for reports,
>> thesis
>> etc. I have installed the new Lyx 2.0 on my Macbook Pro and am using up to
>> date Mactex live from the mirror.aarnet.edu.au mirror) and am
>> experimenting
>> using the "article (KOMA-Script)" document class. Into my document, I have
>> inserted a Bibtex generated Bibliography, selected Natbib Author-year,
>> using
>> "apacite" and pointed it at my marklivingstone.bib file. I typed some text
>> and inserted some trial citations selecting (author, year) type citation
>> as
>> appropriate for varying numbers of authors.
>>
>> When I do an update, and view, I get a beautiful result, but the citations
>> use "and" instead of "&", and the volume numbers are not italicised.
>>
>> Before bothering you guys, I went to the Wiki and found the APALyX page. I
>> downloaded the ApaExample.lyx which I note also uses "apacite" and which
>> has
>> correctly done ampersand signs and volume number citation style. This
>> tells
>> me I must have all the requisite class / style / etc files. Unfortunately,
>> I
>> am very new to Latex / Lyx, and I don't know how to fix my citations. I
>> considered using the ApaExample.lyx but its stylistic elements are just
>> too
>> far from my desired requirements. I don't want their style, just their
>> citation format ;-)
>>
>> On the ApaLyX page, it says you will need an apa.layout file and says to
>> get
>> it (and doesn't say where from!)
>>
>> Thanks in advance,
>>
>> MarkL
>>
>>
> Hi,
>
> First, apa.layout is nowadays shipped with the regular install of LyX.
>
> Second, you might try to put the following line in the LaTeX preamble
> (Document > Settings > LaTeX preamble)
>
> \usepackage{apacite}
>
> (not tested)
>
> --
> Julien
>


Re: Need help getting APA citing working

2011-05-11 Thread stefano franchi
On Wed, May 11, 2011 at 5:04 AM, Julio Rojas  wrote:
> It works, only not it seems not to work with Natbib. From apacite's manual:
> I consider natbib as the de facto standard with which other packages should
> be compatible.
> Unfortunately, apacite is still not entirely compatible with natbib. The
> main incompatibility is that
> different citation commands are used, so that it is not possible to use the
> same document with
> natbib or apacite.
> Regards.

You may consider switching to biblatex (from standard bibtex) and
using the biblatex-apa style (http://www.ctan.org/pkg/biblatex-apa).
Biblatex is not completely integrated with Lyx yet, so you may have to
write a few commands in ERT (i.e. pure Latex), but it works fairly
well once you get the hang of it. Look at the wikipages to get started
(http://wiki.lyx.org/BibTeX/Biblatex). I switched to using biblatex  a
couple of years ago and have no regrets---it is much more flexible and
powerful than bibtex. Moreover, it is clearly the way forward for
managing bibliographies in latex/Lyx. It is actively developed, with
an increasing user base, etc. If you are just starting in Lyx/Latex,
it may be wise to learn how to use it. However, I have no experience
with biblatex-apa. You may want to look at the manual to see if it
fits your needs.

Cheers,

Stefano


Re: Subfigures: \subref support?

2011-05-11 Thread Julien Rioux

On 11/05/2011 3:16 AM, Diego Queiroz wrote:


Unfortunately no it is not supported and moreover the macro \subref
conflicts with the use of refstyle which was implemented in 2.0 (in this
case \subref is a reference to a subsection and yields "subsection 1.1").

So you will have to type "a" yourself or use TeX code.



Are you sure? As stated before, I already solved the problem using ERT.
No conflicts a all.



Yes I'm sure.

- Have a label "sub:mysection" in a subsection.
- Insert a reference to it using  format.
- Make sure refstyle is used instead of prettyref (this is changed in 
document settings> Document class ; refstyle is the default for new docs)


So far all this works. LyX generates \subref{mysection}, which is the 
refstyle syntax for that.


Now if you also use a subfloat within a float you get a conflict. 
Because subfloat also defines a \subref macro. The conflict is silent... 
but you get [??] in output.


Avoid this combination and you're safe.

Cheers,
Julien


Re: Subfigures: \subref support?

2011-05-11 Thread Diego Queiroz
>
> Yes I'm sure.
>

Yeah, you are right. But this is a LyX bug. It should use a not-so-obvious
name for the command to prevent a conflict like this.
However, the command \subref is defined by LyX only when you use the
. Since I don't use this type of cross-reference, there
is no problem with my ERT.

I'll create a ticket for this.

Cheers,
---
Diego Queiroz


Re: selecting fonts in xetex

2011-05-11 Thread Neal Becker
>Guenter Milde wrote:

> On 2011-05-10, Neal Becker wrote:
> 
>> I'm interested in trying out xetex.  Any suggestions for font settings
>> to try (free, widely available)?  This is fedora 14, have stix fonts.
> 
> This very much depends on what you want to achieve.
> As with XeTeX, you can use system fonts, this leaves the realm of TeX
> and you can follow the advise of the typesetting gurus.
> 
> Some links:
> http://en.wikipedia.org/wiki/Typophile_%28Internet_Forum%29
> http://praegnanz.de/essays/freie-schriften-anspruch-und-wirklichkeit
> (German)
> http://www.100besteschriften.de/ (German)
> 
> If you want matching math fonts, the selection becomes considerably
> narrower.
> 
>> How are math fonts selected?
> 
> By default, math fonts are not changed and still taken from the 8-bit
> encoded CM fonts.
> 
> To configure math fonts, there are two options:
> 
> a) load a traditional math-font package like fourier, txfonts or
>qtxfonts or mathdesign or kpmath or ...
>*before* configuring the text fonts.
>
>In LyX this means to leave the Font GUI at [Default], read the
>fontconfig documentation and configure text fonts in the LaTeX
>preamble, e.g.
>
>% Requirements
>\usepackage{fourier}
>
>% Text font
>\usepackage[no-math]{fontspec}
>\usepackage{xunicode}
>\setmainfont[BoldFont={XITS Bold},ItalicFont={XITS Italic}]{XITS Math}
>\setsansfont{DejaVu Sans}
>% \setmonofont[HyphenChar=None,Scale=MatchUppercase]{DejaVu Sans Mono}
>\setmonofont[HyphenChar=None,Scale=MatchUppercase]{FreeMono}
> 
> b) use the experimental "unicode-math" package
>http://ctan.org/pkg/unicode-math
>with one of the few OpenType Math fonts Asana-Math, XITS, Cambria-Math
>(from MS-Word), NeuEuler or (the soon to be released) LM-Math.
>
>Again, you need to call and configure this in the LaTeX preamble.
>See the comprehensive package documentation
>http://mirror.ctan.org/macros/latex/contrib/unicode-math/unicode-math.pdf
>   
>As this is hithero not tested with LyX, you might expect some
>incompatibilities and problems.
> 
> Günter

Thanks!  I found setting 
roman -> XITS
+
\usepackage{unicode-math}
\setmathfont{XITS Math}

was good.  Only missing a \tt font to go with it.  I tried Deja Sans Mono, but 
the characters look larger than the roman text, not good.  Also tried Nimbus 
mono, but it's too thin.



Re: selecting fonts in xetex

2011-05-11 Thread Bruce Pourciau


On May 11, 2011, at 2:32 AM, Guenter Milde wrote:


How are math fonts selected?


By default, math fonts are not changed and still taken from the 8-bit
encoded CM fonts.

To configure math fonts, there are two options:


You could also, within LyX, use the mathpazo package: In Document  
Settings > Fonts choose Palatino and check Small Caps and Old Style  
figures. This gives you Zapf's lovely Palatino for text and symbols  
for mathematics that have been redrawn (Palatino'd) to blend well with  
the text.


Bruce



Re: selecting fonts in xetex

2011-05-11 Thread Neal Becker
Bruce Pourciau wrote:

> 
> On May 11, 2011, at 2:32 AM, Guenter Milde wrote:
> 
>>> How are math fonts selected?
>>
>> By default, math fonts are not changed and still taken from the 8-bit
>> encoded CM fonts.
>>
>> To configure math fonts, there are two options:
> 
> You could also, within LyX, use the mathpazo package: In Document
> Settings > Fonts choose Palatino and check Small Caps and Old Style
> figures. This gives you Zapf's lovely Palatino for text and symbols
> for mathematics that have been redrawn (Palatino'd) to blend well with
> the text.
> 
> Bruce

Unfortunately, on my setup (texlive-2010) Palatino seems quite broken.  Every 
character seems to be underined (load of errors in log), and all text chars are 
blank.



Re: Math macros inside child documents

2011-05-11 Thread Diego Queiroz
>
> But the only one for truly consistent behaviour. If you want to export
> stand-alone, uncheck the master setting.
>

Even if the master setting is not set in the child, LyX still display all
macros perfectly if the master document is open.
My complaint is this: if LyX is able to interpret things and display them in
the editor, it should be able to generate the output. That's all.
Specially if this problem is not present in older versions.

No, you can *include* the sub-documents and use the includeonly feature
> to compile a subset of sub-documents where LaTeX will ensure
> (almost) correct page numbers and references and LyX will use the
> parent doc settings instead of the child-doc ones.
>

What happens when you set the include only option?
The whole document is generated and the pages are ommited or it handle the
pages in a more fashioned way?

I am asking this because, if LyX handles it in a good way, we can change the
action of the view button of child docs to automatically generate the master
document including only the active document. This appears suitable for me
and is better than blocking.


> Actually, *you* generate the error -- a reference to a label that does
> not exist in the document. Setting a master (currently) is just an
> "editing hint" but does not change the way a document is compiled
> stand-alone.
>

If LyX options were consistent, it won't let me generate such errors.
It doesn't really matter if I am responsible for them or not: computers are
here to handle problems we don't want to deal with, right? They are not here
to introduce another class of problems (although I agree this is not always
true :-) .


> I am not sure about this. If I remember right, the LaTeX run is done in
> nonstopmode but the output not opened in a viewer -> I'd like a
> "show output anyway" button in the error message dialogue. Having
> a look at the output is sometimes far more helpful than TeX error
> messages.
>

A "show output anyway" button would be great.
However, if LyX consistency were assured, there's no need for it (expect
when using ERT).

---
Diego Queiroz


Re: Patch for the CJK InputMethod

2011-05-11 Thread K. Yokota
2011/5/11 Julien Rioux :
> This looks interesting. So it delimits the words in a long sentence, is that
> right? I am not sure I understand.

I think he wants to say that somehow LyX has its own settings for
displaying delimitation when IME converts keyboard inputs and that it
should be the IME side which controls the display. Indeed, IME usually
has customizability how delimitation is displayed (in what kind of
color, underlined or highlighted background etc.).

I myself don't have any knowledge about the validity of his patch or
his claim, but is there any reason that LyX should keep the control?
Of course, we should guarantee the robustness for any kinds of
platforms and languages.

# I'm forwarding to lyx-devel too.


Re: Subfigures: \subref support?

2011-05-11 Thread Diego Queiroz
Here is the ticket for this problem.

http://www.lyx.org/trac/ticket/7550


---
Diego Queiroz



On Wed, May 11, 2011 at 10:35 AM, Diego Queiroz wrote:

> Yes I'm sure.
>>
>
> Yeah, you are right. But this is a LyX bug. It should use a not-so-obvious
> name for the command to prevent a conflict like this.
> However, the command \subref is defined by LyX only when you use the
> . Since I don't use this type of cross-reference, there
> is no problem with my ERT.
>
> I'll create a ticket for this.
>
> Cheers,
> ---
> Diego Queiroz
>


Re: Patch for the CJK InputMethod

2011-05-11 Thread K. Yokota
ps. IME is a WIndows jargon for Input Method.


Re: Problem with xdvi preview on MAC OSX

2011-05-11 Thread Trevor Jenkins
Works for me too.

Mac OS X 10.6.7 (Snow Leopard Server with latest updates but logged in as a
normal user), LyX 2.0 (LyX-2.0.0+qt4 dmg downloaded on 2011-05-10), MacTex
2010 (downloaded from TUG on 2011-05-10).

On Wed, May 11, 2011 at 9:23 AM, Stephan Witt  wrote:

> Am 11.05.2011 um 09:27 schrieb Robert Betz:
>
> > I have recently installed Lyx 2.0 for the MAC (OSX 10.6.7).  I have been
> trying to get the xdvi preview to work -- the Preferences->File
> handling->File Formats->DVI entry has been set up for xdvi by the
> installaton  I have MacTex 2010 installed.
> >
> > xdvi runs fine from the a Terminal window.  In fact if can run xdvi from
> the temporary directory where dvi file created by Lyx resides. However when
> I try to preview from the Lyx GUI environment it says that the dvi preview
> is successful but the xdvi window never opens. I have opened the messages
> window and the command is being read correctly. The command generated by Lyx
> is exactly the same as the one I use on the terminal command line, which
> runs!
> >
> > I don't know whether this is a bug or whether it is something that is
> wrong with my system. Asking if anyone else has had this issue.
>
> Sorry, I tried it and it works on my system - Mac 10.6.7, LyX 2.0, MacTeX
> 2009.
>
> Stephan




-- 
Regards, Trevor.

<>< Re: deemed!


Re: Anybody helps about img path

2011-05-11 Thread Enrico Forestieri
Julien Rioux writes:
> 
> It's possible that there have been some changes in the 2.0 development 
> that broke a call to a .bat script, I'll let someone more knowledgeable 
> answer.

Yes, batch files do not work anymore on Windows. You have to invoke your
batch file as "cmd /c file.bat".

-- 
Enrico





Re: Math macros inside child documents

2011-05-11 Thread Guenter Milde
On 2011-05-11, Diego Queiroz wrote:

> [-- Type: text/plain, Encoding:  --]


>> But the only one for truly consistent behaviour. If you want to export
>> stand-alone, uncheck the master setting.

> Even if the master setting is not set in the child, LyX still display all
> macros perfectly if the master document is open.

This is a bug. (Around LyX 1.4, math-macros were resolved in any
open buffer - related or not.)

> My complaint is this: if LyX is able to interpret things and display them in
> the editor, it should be able to generate the output. That's all.
> Specially if this problem is not present in older versions.

Oh no. If LyX is able to interpret a label defined in some other
document but not in the current one, I would not expect this to work
in LaTeX. Why should math-macros be different?

>> No, you can *include* the sub-documents and use the includeonly feature
>> to compile a subset of sub-documents where LaTeX will ensure
>> (almost) correct page numbers and references and LyX will use the
>> parent doc settings instead of the child-doc ones.

> What happens when you set the include only option?
> The whole document is generated and the pages are ommited or it handle the
> pages in a more fashioned way?

TeX \include is specially designed for the master/child concept. Read
about it in the (La)TeX docs.
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=include

> I am asking this because, if LyX handles it in a good way, we can
> change the action of the view button of child docs to automatically
> generate the master document including only the active document. This
> appears suitable for me and is better than blocking.

This was my suggestion for included documents setting a master, while
input document setting a master would defaut to "compile/view/export
master". However, I also suggested to use this as *defaults* - allowing
the user to override the "consistent" behaviour in favour of flexibility.


>> Actually, *you* generate the error -- a reference to a label that does
>> not exist in the document. Setting a master (currently) is just an
>> "editing hint" but does not change the way a document is compiled
>> stand-alone.

> If LyX options were consistent, it won't let me generate such errors.

This is why I wrote what needed to be done for true/strong consistency:
you cannot compile a *.tex document designed for inclusion as a
stand-alone document.

I prefer to live with some amount of inconsistency because otherwise I
would have to use ERT for references to labels I know exist but LyX
doesn't.

> A "show output anyway" button would be great.
> However, if LyX consistency were assured, there's no need for it (expect
> when using ERT).

... or the LaTeX preamble or an outdated TeX distribution or a package
combination with conflicts or ...

Günter




Re: selecting fonts in xetex

2011-05-11 Thread Guenter Milde
On 2011-05-11, Neal Becker wrote:

> was good.  Only missing a \tt font to go with it.  I tried Deja Sans
> Mono, but the characters look larger than the roman text, not good.
> Also tried Nimbus mono, but it's too thin.

You can scale the fonts with fontspec, e.g.

\setmonofont[HyphenChar=None,Scale=MatchUppercase]{FreeMono}

Günter



Re: Math macros inside child documents

2011-05-11 Thread Diego Queiroz
>
> > A "show output anyway" button would be great.
> > However, if LyX consistency were assured, there's no need for it (expect
> > when using ERT).
>
> ... or the LaTeX preamble (1) or an outdated TeX distribution (2) or a
> package
> combination with conflicts (3) or ... (?)
>
> Günter
>

I repeat: if, and only if, LyX consistency were assured, there's no need for
such option (except when using ERT).

What means:
1) In LyX, the LaTeX preamble is an alternative to ERT but it has the same
purpose. So any LaTeX code in LyX will always be a problem to consistency.
If this is your point, I agree with you.
2) In an ideal scenario, LyX could check the LaTeX distribution to see what
resources are available. So an outdated LaTeX should not be a problem.
3) Currently LyX already handles many known packages conflicts. Since
all LyX resources are packages mapped to menu commands, every new package to
be supported should be checked for possible conflicts with all the existent
ones. When this is not possible, LyX should handle the problem in some way
(like preventing the user of using them together).
?) Since these problems are solved, I cannot imagine another problem that is
not related to ERT, file corruption and hardware problems. Otherwise, LyX
can handle it.

Actually, ERTs does exist only to keep LyX flexible, but the ERT goes
against its proposal.


Anyway, let's give up this discussion. It is leading to nowhere.
We're flaming the mailing list. Sorry for this.
---
Diego Queiroz


Re: how to separate pdf file?

2011-05-11 Thread Hady Ariwibowo Teguh
Hi all,
I have tried to split the document by pdf creator. it works but, the link 
cannot work.
Any suggestion?
Thanks
Teguh Hady Ariwibowo
CFD Engineer



--- On Tue, 5/10/11, Julien Rioux  wrote:

From: Julien Rioux 
Subject: Re: how to separate pdf file?
To: lyx-users@lists.lyx.org
Date: Tuesday, May 10, 2011, 6:24 PM

On 10/05/2011 6:07 AM, Paul Smith wrote:
> On Tue, May 10, 2011 at 4:20 AM, Hady Ariwibowo Teguh
>   wrote:
>> i wanna write thesis report in separate pdf file (ex. chap1.pdf, cover.pdf 
>> so on). but i dont know how to do it. Any body help me please.
>
> Teguh,
>
> Produce a single pdf file, and use pdftk to separate the pdf file by chapters.
>
> Hope this helps you,
>
> Paul
>

Just curious, will pdftk preserve links between chapters? This seems 
rather nontrivial.

-- 
Julien