automatically updating latex code used in a LyX document

2015-07-07 Thread Ian
Hi

I want to automatically update latex code embedded in a LyX document that 
was produced as output from another program, in my case STATA. The Latex 
code contains table commands.

The concept is similar to handling graphics in LyX: Insert >> Graphic >> 
(attach file). If I change the graphic file content, keeping the file name 
and location the same, the graphic image will automatically update in LyX. 
I want to do the same thing, but with a .tex file in which contains the 
Latex code for a table produced by STATA. The .tex file name and location 
remain constant, but the content changes.

I am sure this is an easy thing, but I just can't seem to find it on the 
web forums.

Thanks.



Re: beamer align

2015-07-07 Thread edu Gpl
Dear Uwe
The first, the problem in ui and good in pdf result.
The 2nd, the problem in ui and problem in pdf result.

Best regards





‏في الأربعاء، ٨ يوليو، ٢٠١٥, Uwe Stöhr  كتب:

> Am 07.07.2015 um 17:41 schrieb edu Gpl:
>
>> Dear lyx users
>> beamer support arabic language, but text align not good, sometime text in
>> right and some time in center and some time in left.
>> how i can align the text in right (arabic language) with lyx preamle?
>>
>
> (Hatim, is this you? It is confusing that you use 2 different synonyms.)
>
> As I wrote you a few days ago you find a regression bug in LyX 2.2dev. I
> reported this now for you:
> http://www.lyx.org/trac/ticket/9671
>
> regards Uwe
>


Different fonts in multilingual document

2015-07-07 Thread Richard Opheim
I wanted to continue this topic, but somehow the thread got broken.
I want to use English and Japanese in the same document. If I specify my
desired font in the dropdown box in Documents/Settings/Fonts, Japanese
characters will not appear in the PDF.
If I try to use a Japanese font, formatting such as bolding, italics
disappear as well as the font's design isn't up to professional standards
for English. So what I want to do is to have one font that applies only to
English and another that applies only to Japanese.
In response to Gunter's suggestions, I made sure to use an updated
\usepackage{fontspec} in Settings/Languages/Language package.
"Times New Roman" is set in the Settings/Fonts/Roman dropdown box. I have
of course checked non-TeX fonts.
Referring to the fontspec documentation I didn't find any discussion of
using more than one font in a multilingual document, but I read somewhere
about the following command which I inserted into the preamble.

 \newfontfamily\CJKfont{MS PMincho}

The result was as before: no Japanese characters appeared in the PDF XeTex
output. Please find minimal example attached. If anyone has any
suggestions, I'd be very grateful.

Richard Opheim
P.O. Box 2261 Arizona City, AZ 85123
Tel: (1) 206-965-0564
Skype name: richard.opheim

Self-publishing Consultant
Editing---Layout---Musical Scores---Images---Kindle conversion

website URL:
https://sites.google.com/site/opheimrichard/home

self-publishing faq:
 https:/ 
/sites.google.com/site/opheimrichard/publishing-faq


publishing tasks:
https://sites.google.com/site/opheimrichard/publishing-faq/publishing-tasks

marketing techniques:
https://sites.google.com/site/opheimrichard/publishing-faq/marketing

Japanese translation & consulting:
https://sites.google.com/site/japanesetranslationconsulting/


blog:
http://foliocirculaire.blogspot.com

*"It is* the glory of God to conceal a thing: but the honour of kings *is* to
search out a matter."
Proverbs 25:2


Japanese text test.lyx
Description: application/lyx


Re: beamer align

2015-07-07 Thread Uwe Stöhr

Am 07.07.2015 um 17:41 schrieb edu Gpl:

Dear lyx users
beamer support arabic language, but text align not good, sometime text in
right and some time in center and some time in left.
how i can align the text in right (arabic language) with lyx preamle?


(Hatim, is this you? It is confusing that you use 2 different synonyms.)

As I wrote you a few days ago you find a regression bug in LyX 2.2dev. I 
reported this now for you:

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

regards Uwe


Re: Compiling Embedded Objects Help File

2015-07-07 Thread Scott Kostyshak
On Tue, Jul 7, 2015 at 4:08 PM, Steve Hnizdur  wrote:

> BTW are you notifying the documentation team about the needed package?

If you have the time, it would be great if you could make a bug report
for this at http://www.lyx.org/trac . Select the component
"documentation".

Scott


Page margins

2015-07-07 Thread Steve Hnizdur

Hi

I've been noticed some odd behaviour when the page margins are changed 
from the class defaults. This has caused me some annoyance with marginal 
notes.


Attached is MWE1.lyx which is a simple document using the class default 
margins and with the showframe package and its output is MWE1.pdf.


MWE2.lyx is identical except that the top margin has been changed. Lyx 
has inserted


\usepackage[a4paper]{geometry}
\geometry{verbose,tmargin=5cm}

in the preamble.

The output MWE2,pdf is not what I had expected as the side margins have 
changed and the marginal note area is now much nearer the edge. Indeed 
if say the outer margin is changed in Document Settings then the 
marginal area can almost disappear altogether.


I solved this to some extent as in MWE3.lyx where I stopped Lyx 
inserting the geometry pack by setting local layout, and then put


\usepackage[a4paper,includemp]{geometry}
\geometry{verbose,tmargin=5cm}

in the preamble. I.e. the same as Lyx did but with an extra option.

The output MWE3.pdf is better but still not just a change to the header 
margin.


The includemp could have been includeall with a slight difference to the 
output.


So, should Lyx automatically include this option in the usepackage call 
or is there a much neater way to do what I want, i.e. change the header 
margin without changing anything else.


Sorry for the length. Couldn't think of a shorter way to describe this.

Cheers
--

Steve Hnizdur


MWE1.lyx
Description: application/lyx


MWE1.pdf
Description: Adobe PDF document


MWE2.lyx
Description: application/lyx


MWE2.pdf
Description: Adobe PDF document


MWE3.lyx
Description: application/lyx


MWE3.pdf
Description: Adobe PDF document


Re: Compiling Embedded Objects Help File

2015-07-07 Thread Steve Hnizdur

On 07/07/15 12:55, Scott Kostyshak wrote:


Ah, this is probably because German is used in the document, possibly
as an example of how to include text as a separate language. LyX knows
what needs to be added to the preamble and does it itself.

If you wanted to add it yourself (which is not as recommended as
letting LyX handle it for you), you could put it in "Class options" in
Document > Settings.

Scott



You are quite right - as soon as text is selected and set to another 
language Lyx puts the language code as a class option.


BTW are you notifying the documentation team about the needed package?

Cheers

--

Steve Hnizdur


Re: \usepackage{cite} with IEEEtrans not collapsing multiple refs?

2015-07-07 Thread Neal Becker
Neal Becker wrote:

> I'm using
> \documentclass[american,conference]{IEEEtran}
> \usepackage{fontspec}
> \usepackage{geometry}
> \geometry{verbose}
> \usepackage{graphicx}
> 
> \makeatletter
> %% User specified LaTeX commands.
> \usepackage{cite}
> ...
> 
> But citations like:
> \cite{roberts,okada}
> 
> are not collapsed, but appear as
> [1], [2]
> 
> This is supposed to work according to
> 
http://ctan.mirrors.hoobly.com/macros/latex/contrib/IEEEtran/IEEEtran_HOWTO.pdf
> 
> Any ideas? (Of course, this is a lualatex issue, not really lyx issue - I
> can reproduce running lualatex on the latex output from lyx)

my mistake, it seems only collections of >=3 items are collapsed - I was 
testing with 2.



\usepackage{cite} with IEEEtrans not collapsing multiple refs?

2015-07-07 Thread Neal Becker
I'm using
\documentclass[american,conference]{IEEEtran}
\usepackage{fontspec}
\usepackage{geometry}
\geometry{verbose}
\usepackage{graphicx}

\makeatletter
%% User specified LaTeX commands.
\usepackage{cite}
...

But citations like:
\cite{roberts,okada}

are not collapsed, but appear as
[1], [2]

This is supposed to work according to
http://ctan.mirrors.hoobly.com/macros/latex/contrib/IEEEtran/IEEEtran_HOWTO.pdf

Any ideas? (Of course, this is a lualatex issue, not really lyx issue - I 
can reproduce running lualatex on the latex output from lyx)



Re: Text size in margin note

2015-07-07 Thread edu Gpl
thank you Michael but this difficult, i have 60-80 margin note or margin
table in my book.
i want code for lyx preamle.

best regards

2015-07-07 18:45 GMT+03:00 edu Gpl :

> thank you Michael but this difficult, i have 60-80 margin note or margin
> table in my book.
> i want code for lyx preamle.
>
> best regards
>
> 2015-07-07 14:53 GMT+03:00 Michael Berger :
>
>> On 07/07/2015 11:25 AM, edu Gpl wrote:
>>
>>> Dear lyx users
>>> Please how i can used \small size for the text of margin note ?
>>> Lyx: 2.2dev
>>> Margin note:
>>> - default margin note
>>> And
>>> - usepackage{capt-of} for figure and table ( margin).
>>>
>>> Regards
>>>
>> Try this:
>> Set the cursor inside the text of your marginal note (in the red box),
>> then right-click and > Text Style > customized > Size
>>
>> Michael
>>
>
>


beamer align

2015-07-07 Thread edu Gpl
Dear lyx users
beamer support arabic language, but text align not good, sometime text in
right and some time in center and some time in left.
how i can align the text in right (arabic language) with lyx preamle?

best regards


beamer.lyx
Description: application/lyx


Re: Compiling Embedded Objects Help File

2015-07-07 Thread Scott Kostyshak
On Tue, Jul 7, 2015 at 7:21 AM, Steve Hnizdur  wrote:
> On 07/07/15 11:31, Scott Kostyshak wrote:
>>
>> On Tue, Jul 07, 2015 at 10:01:23AM +0100, Steve Hnizdur wrote:
>>>
>>> Hi
>>>
>>> I'm trying to display the help file Embedded Objects to see what the
>>> effects
>>> look like. However I get "Unknown option 'ngerman'" when I press ctrl-R.
>>
>>
>> Can you try installing the package texlive-lang-german? Then try again.
>>
>> I found it by running the command
>>
>>apt-file find ngerman
>>
>> And then looking for TeX Live related names.
>>
>> Scott
>>
>
> Thanks for the reply. There are two points:
>
> 1. The package texlive-lang-german does allow the compilation. Maybe this
> should be included in the list of required packages in the note at the top
> of the document.

Good idea. I agree that we should consider including it (in a separate
paragraph, because the current paragraph says that you can "still
compile" without those).

> 2. I was more interested in how the ngerman option was being passed as an
> option. Two languages were being passed to documentclass i.e. ngerman and
> english.  I cannot immediately find any way to do this in Lyx itself without
> subsequently editing the file outside Lyx.

Ah, this is probably because German is used in the document, possibly
as an example of how to include text as a separate language. LyX knows
what needs to be added to the preamble and does it itself.

If you wanted to add it yourself (which is not as recommended as
letting LyX handle it for you), you could put it in "Class options" in
Document > Settings.

Scott


Re: Text size in margin note

2015-07-07 Thread Michael Berger

On 07/07/2015 11:25 AM, edu Gpl wrote:

Dear lyx users
Please how i can used \small size for the text of margin note ?
Lyx: 2.2dev
Margin note:
- default margin note
And
- usepackage{capt-of} for figure and table ( margin).

Regards

Try this:
Set the cursor inside the text of your marginal note (in the red box),
then right-click and > Text Style > customized > Size

Michael


Re: Compiling Embedded Objects Help File

2015-07-07 Thread Steve Hnizdur

On 07/07/15 11:31, Scott Kostyshak wrote:

On Tue, Jul 07, 2015 at 10:01:23AM +0100, Steve Hnizdur wrote:

Hi

I'm trying to display the help file Embedded Objects to see what the effects
look like. However I get "Unknown option 'ngerman'" when I press ctrl-R.


Can you try installing the package texlive-lang-german? Then try again.

I found it by running the command

   apt-file find ngerman

And then looking for TeX Live related names.

Scott



Thanks for the reply. There are two points:

1. The package texlive-lang-german does allow the compilation. Maybe 
this should be included in the list of required packages in the note at 
the top of the document.


2. I was more interested in how the ngerman option was being passed as 
an option. Two languages were being passed to documentclass i.e. ngerman 
and english.  I cannot immediately find any way to do this in Lyx itself 
without subsequently editing the file outside Lyx.


Cheers

--

Steve Hnizdur


Re: Compiling Embedded Objects Help File

2015-07-07 Thread Scott Kostyshak
On Tue, Jul 07, 2015 at 10:01:23AM +0100, Steve Hnizdur wrote:
> Hi
> 
> I'm trying to display the help file Embedded Objects to see what the effects
> look like. However I get "Unknown option 'ngerman'" when I press ctrl-R.

Can you try installing the package texlive-lang-german? Then try again.

I found it by running the command

  apt-file find ngerman

And then looking for TeX Live related names.

Scott


Text size in margin note

2015-07-07 Thread edu Gpl
Dear lyx users
Please how i can used \small size for the text of margin note ?
Lyx: 2.2dev
Margin note:
- default margin note
And
- usepackage{capt-of} for figure and table ( margin).

Regards


Compiling Embedded Objects Help File

2015-07-07 Thread Steve Hnizdur

Hi

I'm trying to display the help file Embedded Objects to see what the 
effects look like. However I get "Unknown option 'ngerman'" when I press 
ctrl-R.


The premable to this file contains

\documentclass[12pt,ngerman,english,fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,
titlepage,captions=tableheading,usenames,dvipsnames]{scrbook}

I can see where all these options come from by looking at the Document 
Settings dialogue except for the ngerman. Where is this set?


I'm using Lyx 2.1.3 on Ubuntu 14.04.

Many thanks.

Cheers
--

Steve Hnizdur


Re: LaTeX Error: \begin{Large} on input line 23 ended by \end{document}.

2015-07-07 Thread Jürgen Spitzmüller
Am Montag 06 Juli 2015, 20:43:05 schrieb Steve Litt:
> I looked at a .tex file created by LyX in November 2013, and that LaTeX
> file used \begin and \end to express homegrown environments. When did
> this change?
> 
> So what are all of you doing about this kind of error? I can't be the
> only one.

If you need an environment in the LaTeX output, you need to define the lyx 
layout as an environment (LatexType Environment, not LatexType Command).

See attached (fixed) layout.

Jürgen
#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[book]{bug_example}



Input stdclass.inc
#Format 11
Input book.layout

Preamble
\newenvironment{proverbL}{\par~\\[0.2ex]\begin{itshape}\begin{Large}}{\end{Large}\end{itshape}~\\[0.3ex]}

EndPreamble

Style Proverb
LatexName   proverbL
LatexType   Environment
Font 
Series   Medium
Size Larger
Shape   Italic
EndFont
End