Re: Japanese furigana into LyX documents

2017-05-30 Thread K. Yokota
BTW, writing furigana with TeX code is cumbersome. I use the following
local layout for furigana for convenience:

InsetLayout Flex:Ruby
>
> LyxType charstyle
>
> LatexType command
>
> LatexName ruby
>
> BgColor none
>
> LabelString "Ruby"
>
> Decoration Conglomerate
>
> Argument post:1
>
> LabelString "Furigana"
>
> MenuString "Furigana"
>
> Decoration Conglomerate
>
> Font
>
> Size tiny
>
> EndFont
>
> LabelFont
>
> Size tiny
>
> EndFont
>
> Mandatory 1
>
> EndArgument
>
> Preamble
>
> \IfFileExists{ruby.sty}
>
> {\usepackage[CJK,overlap]{ruby}}
>
> {\newcommand{\ruby}[2]{#2}}
>
> EndPreamble
>
> ResetsFont true
>
> End
>

Remember to remove "\usepackage[CJK,overlap]{ruby}" line from Document ->
Preamble to prevent a crash.

Usage when writing:

1. choose Edit -> Text Style -> Ruby to insert a ruby inset,
2. write a main text in the inset,
3. choose Insert -> Furigana to insert the inner furigana inset,
4. fill in furigana for the main text in the inner inset

I attach an improved sample file.


2017-05-31 7:19 GMT+09:00 Daniel Gómez Martínez :

>
> *Daniel Gómez Martínez*
>
> -- Forwarded message --
> From: Daniel Gómez Martínez 
> Date: 2017-05-30 17:18 GMT-05:00
> Subject: Re: Japanese furigana into LyX documents
> To: "K. Yokota" 
>
>
> It works, thank you very much! This is enough for my needs.
>
> *Daniel Gómez Martínez | Profesional en ingeniería eléctrica*
> *Universidad Nacional de Colombia*
> *Automatización industrial, instalaciones eléctricas.*
> *Sistemas de potencia, control de sistemas.*
> Tel: (+57)
> *312 824 8697 <3044313476>*
>
> 2017-05-30 10:58 GMT-05:00 K. Yokota :
>
>> Hi Daniel,
>>
>> I attach a working example. It uses "Unicode (CJK) (utf8)" encoding and
>> BXcjkjatype package. Note that you use "pdflatex" for compilation. I tested
>> with MacTeX so I hope it works with TeXlive as well.
>>
>> The following links are good for reference:
>> (original Japanese page) https://texwiki.texjp.org/?LaTeX-CJK#ue7194c1
>> (its English translation: unfinished?) http://jun0inoue.blogspot.jp/2
>> 013/05/tex-wiki.html
>>
>> Japanese CJK doesn't seem to work with other encodings even with
>> comprehensive TeXLive as is. I guess the use of BXcjkjatype package is the
>> only path to succeed with LyX and out-of-box latex systems.
>>
>> Cheers,
>>
>> Koji
>>
>>
>> 2017-05-28 6:02 GMT+09:00 Daniel Gómez Martínez :
>>
>>> Hello everyone,
>>>
>>> I want to be able to produce documents with furigana scripture (kana
>>> over kanji in japanese writings) and I've found this links describing how
>>> to do it in plain LaTeX
>>> https://quantumtunnel.wordpress.com/2013/12/01/furigana-%E3%
>>> 81%B5%E3%82%8A%E3%81%8C%E3%81%AA%EF%BC%89in-latex/
>>> http://timmurphy.org/2012/12/28/writing-kanji-with-furigana-
>>> hiragana-above-in-latex/
>>>
>>> But when I try to implement that into the LyX LaTeX preamble I just get
>>> furigana (characters above) in the size as the main characters, which is
>>> not what one would want (furigana has to be smaller than the main
>>> character).
>>>
>>> I've searched for an implementation in LyX on the web and through the
>>> documentation but with no avail, so my question is, as there doesn't seems
>>> to be a feature for this in LyX, it's there a way I can get it to work?
>>> And, would it be fine to ask to the development mailing list to add a
>>> feature to ease the writing of kanji with furigana?
>>>
>>>
>>> *​Best regards, ​Daniel Gómez*
>>>
>>
>>
>
>


rubyLayout.lyx
Description: application/lyx


Fwd: Japanese furigana into LyX documents

2017-05-30 Thread Daniel Gómez Martínez
*Daniel Gómez Martínez*

-- Forwarded message --
From: Daniel Gómez Martínez 
Date: 2017-05-30 17:18 GMT-05:00
Subject: Re: Japanese furigana into LyX documents
To: "K. Yokota" 


It works, thank you very much! This is enough for my needs.

*Daniel Gómez Martínez | Profesional en ingeniería eléctrica*
*Universidad Nacional de Colombia*
*Automatización industrial, instalaciones eléctricas.*
*Sistemas de potencia, control de sistemas.*
Tel: (+57)
*312 824 8697 <3044313476>*

2017-05-30 10:58 GMT-05:00 K. Yokota :

> Hi Daniel,
>
> I attach a working example. It uses "Unicode (CJK) (utf8)" encoding and
> BXcjkjatype package. Note that you use "pdflatex" for compilation. I tested
> with MacTeX so I hope it works with TeXlive as well.
>
> The following links are good for reference:
> (original Japanese page) https://texwiki.texjp.org/?LaTeX-CJK#ue7194c1
> (its English translation: unfinished?) http://jun0inoue.blogspot.jp/2
> 013/05/tex-wiki.html
>
> Japanese CJK doesn't seem to work with other encodings even with
> comprehensive TeXLive as is. I guess the use of BXcjkjatype package is the
> only path to succeed with LyX and out-of-box latex systems.
>
> Cheers,
>
> Koji
>
>
> 2017-05-28 6:02 GMT+09:00 Daniel Gómez Martínez :
>
>> Hello everyone,
>>
>> I want to be able to produce documents with furigana scripture (kana over
>> kanji in japanese writings) and I've found this links describing how to do
>> it in plain LaTeX
>> https://quantumtunnel.wordpress.com/2013/12/01/furigana-%E3%
>> 81%B5%E3%82%8A%E3%81%8C%E3%81%AA%EF%BC%89in-latex/
>> http://timmurphy.org/2012/12/28/writing-kanji-with-furigana-
>> hiragana-above-in-latex/
>>
>> But when I try to implement that into the LyX LaTeX preamble I just get
>> furigana (characters above) in the size as the main characters, which is
>> not what one would want (furigana has to be smaller than the main
>> character).
>>
>> I've searched for an implementation in LyX on the web and through the
>> documentation but with no avail, so my question is, as there doesn't seems
>> to be a feature for this in LyX, it's there a way I can get it to work?
>> And, would it be fine to ask to the development mailing list to add a
>> feature to ease the writing of kanji with furigana?
>>
>>
>> *​Best regards, ​Daniel Gómez*
>>
>
>


Re: Lyx/Latex Beamer Compatibility

2017-05-30 Thread Paul A. Rubin

On 05/30/2017 01:43 PM, Christos Makridis wrote:

Hey everyone,

I talked with my collaborator and acquired some more details. When she 
was installing lyx, it asked her to update miktex/install updates. She 
did that and after that was when tex was not working. So then she 
uninstalled lyx, but tex was still not working, so she uninstalled 
miktex and reinstalled it. So her beamer slides and some formats of 
latex are still not working on her windows desktop.


My thought was just to reinstall everything and get all the packages 
up to date?
Assuming that the problem is with her MiKTeX installation, wiping all 
traces of MiKTeX (and LyX) and reinstalling (and then updating) MiKTeX 
should fix it. The sequence "i_DEc2016_NBER.nav" has me wondering 
whether something is garbled in a source file, though. If a full 
reinstall does not fix things, can you get her to provide one of the 
offending source documents, cut down to more or less the minimum 
required to trigger an error?


Paul



Re: Lyx/Latex Beamer Compatibility

2017-05-30 Thread Christos Makridis
Hey everyone,

I talked with my collaborator and acquired some more details. When she was
installing lyx, it asked her to update miktex/install updates. She did that
and after that was when tex was not working. So then she uninstalled lyx,
but tex was still not working, so she uninstalled miktex and reinstalled
it. So her beamer slides and some formats of latex are still not working on
her windows desktop.

My thought was just to reinstall everything and get all the packages up to
date?


Re: Japanese furigana into LyX documents

2017-05-30 Thread K. Yokota
Hi Daniel,

I attach a working example. It uses "Unicode (CJK) (utf8)" encoding and
BXcjkjatype package. Note that you use "pdflatex" for compilation. I tested
with MacTeX so I hope it works with TeXlive as well.

The following links are good for reference:
(original Japanese page) https://texwiki.texjp.org/?LaTeX-CJK#ue7194c1
(its English translation: unfinished?)
http://jun0inoue.blogspot.jp/2013/05/tex-wiki.html

Japanese CJK doesn't seem to work with other encodings even with
comprehensive TeXLive as is. I guess the use of BXcjkjatype package is the
only path to succeed with LyX and out-of-box latex systems.

Cheers,

Koji


2017-05-28 6:02 GMT+09:00 Daniel Gómez Martínez :

> Hello everyone,
>
> I want to be able to produce documents with furigana scripture (kana over
> kanji in japanese writings) and I've found this links describing how to do
> it in plain LaTeX
> https://quantumtunnel.wordpress.com/2013/12/01/
> furigana-%E3%81%B5%E3%82%8A%E3%81%8C%E3%81%AA%EF%BC%89in-latex/
> http://timmurphy.org/2012/12/28/writing-kanji-with-
> furigana-hiragana-above-in-latex/
>
> But when I try to implement that into the LyX LaTeX preamble I just get
> furigana (characters above) in the size as the main characters, which is
> not what one would want (furigana has to be smaller than the main
> character).
>
> I've searched for an implementation in LyX on the web and through the
> documentation but with no avail, so my question is, as there doesn't seems
> to be a feature for this in LyX, it's there a way I can get it to work?
> And, would it be fine to ask to the development mailing list to add a
> feature to ease the writing of kanji with furigana?
>
>
> *​Best regards, ​Daniel Gómez*
>


test.pdf
Description: Adobe PDF document


test.lyx
Description: Binary data


Re: Lyx/Latex Beamer Compatibility

2017-05-30 Thread Christos Makridis
Great question, will find out and follow up.

(Thank you all for being so prompt and interested in figuring out the
problem!)


Re: Lyx/Latex Beamer Compatibility

2017-05-30 Thread Paul A. Rubin

On 05/29/2017 11:03 PM, Christos Makridis wrote:

Hey Richard,

I am pretty sure it is Windows, and it's the most recent version from 
miktex. I can ask her for the specifics though if you think it might help?


--
We also need to know which LyX installer she used. There are two 
versions for Windows, the "installer" (52 MB) and the "bundle" (261 MB). 
The former relies on an existing MiKTeX installation; the latter 
installs a version of MiKTeX. If you use the bigger installer and you 
already have MiKTeX, you end up with two MiKTeX installations (the 
original is not replaced).


So I wonder if she used the larger installer and, after uninstalling 
LyX, some trace of the LyX-installed MiKTeX distribution persisted?


Paul



Re: minipage preview of linewidth in edit mode

2017-05-30 Thread Jean-Marc Lasgouttes

Le 28/05/2017 à 04:32, subaochen a écrit :

Thanks Soctt!

Actually, I change the width of first minipage to 65.681%(the other is 
always 30% width), the whole thing is ok, LaTeX log say nothing 
wrong.But 65.682% is not working, LaTeX log say:


Overfull \hbox (0.10208pt too wide) in paragraph at lines 12--18


I don't know the reason, where the 4.3% of space go?


Textwidth is the complete line width, LineWidth is the same minus the 
paragraph indentation (when on first line of a paragraph). The bug is 
that on screen LyX considers the line width to be equal to text width. 
The 4.3% of space is thus the indentation. You would not have the 
problem if the indentation was removed.


Please consider creating a ticket at www.lyx.org/trac. I cannot commit 
to fixing it right now, though.


JMarc


Re: .pdf detected as suspicious because it registers as .bin........

2017-05-30 Thread Charlie
On Mon, 29 May 2017 23:10:04 -0400
Scott Kostyshak  wrote:

> On Tue, May 30, 2017 at 09:30:45AM +1000, Charlie wrote:
> 
> > Yes, Sorry. should have been clearer. I go into webmail of my
> > Internet Service Provider and the .pdf created by LyX has the
> > WARNING [below] message before opening.  
> 
> Ah I see what you mean now.
> 
> > Look; it's really just a thing that I thought was a bit weird and
> > imagined that someone else had this problem with a .pdf constructed
> > by a LyX converter?  
> 
> I agree it's weird. The following
> 
> $ file sample.pdf 
> sample.pdf: PDF document, version 1.5
> $ mimetype sample.pdf 
> sample.pdf: application/pdf
> 
> makes me think that the file is correct and that the webmail from your
> ISP is having trouble with the identification.
> 
> Indeed, I've read that determining the type of file from the file
> itself can be tricky. See also:
> 
> https://en.wikipedia.org/wiki/Magic_number_(programming)
> 
> Scott

Thank you for the link.
Charlie
-- 
Registered Linux User:- 329524
***

The Great Way is not difficult for those who have no
preferences. --Sengstan Third Zen Patriarch

***

Debian GNU/Linux - Magic indeed.

-


Re: Initials not scaled properly over 3 Lines

2017-05-30 Thread Pilhofer, Frank
Paul,
thank you, that does the trick! Actually, step 3 (loading the fix-cm package) 
is sufficient. Once I add that package, the initials are scaled properly.
The DefaultLines counter in the preamble sets the default number of lines for 
the initial packages, so that I do not have to configure the "lines" option 
every time.
Thank you,
Frank



Re: Lyx on Mac: Preferences problems

2017-05-30 Thread Dr Eberhard Lisse
Can not reproduce on my 5K iMac 10.12.5 with 2.2.3 from DMG

el

On 29/05/2017 15:44, David Pesetsky wrote:
> Thank you for your reply.  This is Lyx version 2.2.3, installed from .dmg.
> 
> Focusing on the first of the two problems I wrote about:
> 
> 1. Open LyX:Preferences  (with no file open)
> 2. Change any setting, for example, Screen Font (but it can be any
> change on any submenu)
> 3. Click "Apply"
> 4. Click "Save"
> 5. all is well - the preference is saved and works
> 
> but:
> 1. Open a Lyx file in the editor window.
> 2. Change any setting, for example, Screen Font (but it can be anything,
> on any submenu
> 3. Click "Apply"
> 4. A white box appears and the program freezes.
> 5. Also: if you click on the editor window while the program is in its
> frozen state, that window turns black.