On Thu, Jul 21, 2011 at 4:17 PM, John R Hudson <[email protected]>wrote:
> On Thursday 21 July 2011 17:40:00 you wrote: > > On Thu, Jul 21, 2011 at 12:50 PM, John R Hudson > > > > <[email protected]>wrote: > > > On Thursday 21 July 2011 13:29:51 Diego Queiroz wrote: > > > > Hello. > > > > > > > > 1. How the link to the doc/clipart files should be in the file? > > > > Relative > > > > > > to > > > > > > > the folder where the file is (eg. using "../" from "doc/pt/")? Or > there > > > > > > is > > > > > > > some different trick? > > > > > > If you open the LaTeX viewer View>View source, you can see how LyX > makes > > > the > > > links to each file. > > > > > > > 2. Instead of using files to display colored boxes in the > documentation > > > > (see doc/clipart/footnoteQt4.png to know what I am talking about), I > > > > decided to use the ERT > > > > "\colorbox{gray_lyxbox}{\textcolor{cyan}{foot~1}}" (colors defined in > > > > the preamble). The output looks the same and I think this way is more > > > > flexible. Do someone have any complaints about this change? I'm > asking > > > > this because lay users may see ERT in the Introduction file, which > > > > should not be the intended purpose the file. This ERT is inside a > > > > "Preview" box, producing a perfect look in the LyX screen, but > instant > > > > preview isn't enabled by default on LyX, so ERT seems inevitable. > > > > > > Embedded Objects Help, section 5.7 describes the recommended ways to do > > > this. > > > > > > > 3. In section 2.1 of the UserGuide.lyx I can see some figures that > > > > aren't what we are used to call "figures". They load the images using > > > > > > lyx-commands > > > > > > > as argument instead of usual image files. What are these graphics? > Some > > > > undocumented resource? > > > > > > These are in-line figures rather than float figures or figures in a > > > paragraph > > > of their own. Essentially the images are handled the same - the > container > > > for > > > them changes. > > > > > > > Cheers, > > > > --- > > > > Diego Queiroz > > > > > > John > > > > John. Thanks for you answer, but I think you didn't consider my > questions. > > > > I'm translating the documentation, so my questions are not about "how to > > use some feature". > > > > 1. The translated files are in directories of different level from the > > original english files. So, should the relative paths be relative to the > > new location (/doc/pt/), the original location (/doc/), or.. > > A quick look at my installation shows that, though the translations are in > different directory trees the images are all in /images/classic/ which is > in > the /lyx/ folder - so I would assume you do not need to change the paths - > but > I'm sure another translator will tell you if I am wrong. > > > 2. AFAIK, LyX only supports red shaded boxes without ERT. So using shaded > > boxes are not a good alternative. > No longer true of LyX 2.0.0 - go to Documents>Settings>Colors - though you > can > only set a global colour; to have more than one shade for a box, you need > ERT. > However, to go back to your original question only three languages have > followed the English approach so far > /usr/share/lyx/doc/clipart/footnoteQt4.png > /usr/share/lyx/doc/fr/clipart/footnoteQt4.png > /usr/share/lyx/doc/it/clipart/it_footnoteQt4.png > /usr/share/lyx/doc/ja/clipart/footnoteQt4.png > So it may be worth looking at how, for example, the German translators have > tackled this issue rather than re-inventing the wheel. > > > 3. You're wrong. They aren't in-line figures. Click on them and try to > > change something (eg. its size). You'll note the difference. > > > The LaTeX code is, for example, \includegraphics{\lyxdot \lyxdot > /images/classic/buffer-new}. Leave out the two \lyxdot commands and you > have a > simple in-line graphic. My guess is the difference is in the LyX (not > LaTeX) > code which prevents changes. > > > Cheers, > > --- > > Diego Queiroz > John > Thanks for your answer again John. My replies... :-) 1. All images are in a fixed folder, but the docs are (i) the english ones at /doc/ folder and (ii) the translated ones in /doc/lang/ folder. So my question was: should the paths to /clipart/ be relative to /doc/lang/ or relative to /doc/ ? Anyway, I think this question is kinda stupid. Now I realized that some languages has its own /clipart/ folder. Well... never mind. :P 2. I was not aware of this feature. Thanks. :) But it doesn't appear to fit my needs (not completely, at least). :( I took a look in the other languages that don't use the images and they don't use any alternative method. They probably don't cite these features, or don't use examples. Anyway, I'll use ERT instead of images (of course, I'll try to avoid when possible using shadowed boxes). If someone complains about it, I remove it later. BTW, Instant Preview can be enabled by default in a near future. Who knows? 3. Well, I'm sure the difference resides in LyX. But what do you think about it? My guess is that this is an undocumented resource. Someone can tell if I am wrong, and I know that I can freely copy/paste that "figure" but I'm almost sure there is no way to insert it using LyX menu (maybe thru the command buffer?). Cheers, PS: Don't forget to reply to the list. :-) --- Diego Queiroz
