Re: "Launch file" warning from hyperlink in PDF
leonid baranov gmail.com> writes: > (see an attached sample). Hi, I failed to figure out how to upload an attachment to a GMANE post. So, here are the missing details for the previous post. 1.1. In "Insert > Hyperlink" dialog, I entered: - Target: run:C:/Users/Public/Videos/Sample Videos/Wildlife.wmv - Link type: Web 1.2. Adobe Reader's "Launch File" Warning: The file and it's viewer application are set to be launched by this PDF file. The file may contain programs, macros, or viruses that could potentially harm your computer. Only opern the file if you are sure it is safe. If this file was placed by a trusted person or program, you can click Open to view the file. C:\Program Files (x86)\Windows Media Player\wmplayer.exe < Open > | < Do Not Open > 1.3. Note that the video in question is a demo file normally available on any Windows platform (comes with a standard distribution). Regards, Leonid
"Launch file" warning from hyperlink in PDF
Hello, LyXers Two questions about hyperlinking executables. 1. I was hoping to create an annotated family media archive using LyX. A searchable and navigable text in PDF would serve as a guide to the archive. Hyperlinks would point to the media of interest and allow to play it on click. Imbedding this amount of media in PDF was not an option. As an annoying problem, Adobe Reader XI does not play videos until after user's response to a "Launch file" warning (see an attached sample). Recent fixes in the Adobe security notwithstanding, the Adobe Help seems to imply that it should be possible to suppress the warning. But no tried combination of Reader's preferences (Multimedia(legacy) | Multimedia Trust (legacy) | Security | Security (Enhanced) | Trust Manager ) would allow to circumvent the warning. Are there additional PDF options which one could specify in LyX so as to suppress the warning? Platform: LyX 2.0.5/MiKTeX 2.9/Win 7 2. Similarly, but more generally, could one hyperlink an aribitrary local executable (say, of my own making) and pass parameters to it? Adobe help seems to imply that, beyond the 3 choices offered by LyX (Web | eMail | File ), there also exist so called "Custom Links". Could the custom hyperlinks be defined through LyX? If so, could they be used (how?) for the above purpose of invoking ANY executable/script? Thank you for your time
Re: Vector Fonts for Russian-English LyX document
> No you don't. Leave all fonts at default setting. cm-super will select the right glyphs > automatically for you. (The default are the different shapes of the Computer modern fonts and > CM-super is their vector replacement.) ... > > If you really want to use another font than Computer modern, then use ttf/otf fonts via the docment > font settings option "use-non TeX fonts". For more info abot this option, see the LyX userGuide, > sec. 3.7 "Fonts and Text Styles" ... > All fonts that you can select via the document settings are installed. The next LyX version supports > a few more fonts, but thanks to XeTeX you can use nowadays every font you like as TTF or OTF font. Uwe, thanks for clarifications. But now I am wondering if I got you right on the implications of your answers? Suppose, a novice (as myself) wants to prepare an aesthetically looking PDF, with vector fonts, of a multilingual document. He leans to enjoy the conveniences of LyX/MiKTeX. Then he has at least 3 options: 1. Chose the "TeX"-fonts and rely on the wits of LyX/MiKTeX. If, say, a Cyrillic script is in heavy presence, then install 'cmcyr'+'cm-super' font packages. That leaves a freedom to vary the family (Serif|Sans|Typewriter) and many other attributes. But not the "design" -- that part of "look and feel" which is not captured by the above attributes. This locks the user within a single font "design" -- CM (Computer Modern); 2. Suppose there is a need to switch between several designs (say, in order to convey a touch of other times and places). There is still an option to stay with the "TeX-fonts". For instance, a Cyrillic package PSCyr offers several designs of Postscript fonts -- Academy, Handbook, College, Antiqua, Lazurski, and a number of others. But then the author is all by himself, no lifeline from LyX/MiKTeX. There is a hairball of issues revolving around the font management infrastructure (NFSS ?) behind the TeX, LaTeX and MiKTeX. The downsides: 2.1. Tons of reading, learning and experimenting. Quite a feat of heavy-lifting for a novice; 2.2. The entire idea does not sit well with the automation of MiKTeX. Hand-made changes in various files are useless for they will be wiped off come a next update "on-the-fly"; 2.3. Will the PSCyr fonts coexist peacefully with CM and, possibly, yet another package within same document? That might require a local stand-apart font installation, at the very least. Perhaps, some non-trivial TeX-programming, too. 3. Alternatively, one could opt to leave a scary tight underworld of "TeX-fonts". And step into a wide open sunny land of Open Type Fonts available through XeTeX/LuaTeX. The gains: 3.1. Plenty of beautiful OTF/TFF fonts preinstalled on Windows; 3.2. Even more of mighty flexible fonts are available from other sources. Linux Libertine is a notable example (thanks, Maria). 3.3. Switching between the different font designs any time any place is incredibly easy, just take a look at a sample at http://en.wikipedia.org/wiki/XeTeX#Example 4. Given (1,2,3), what would be a compelling reason to prefer the Tex-fonts + pdfLatex over XeTeX/LuaTeX? 5. More specifically, if one chooses to go with XeTeX (or LuaTeX), 5.1. Would that cost one any problems with typesetting a math? 5.2. Would there be incompatibilities with the "pre-XeTeX" packages? Would one lose an access to some irreplaceable legacy code? I would appreciate your insight and opinion. Best regards, Leonid
Re: Vector Fonts for Russian-English LyX document
Maria, Very kind of you to share with others. The font is a treasure trove. Rich expressive capabilities. Especially, in multilingual environment. My 2 cents to using it. Platform: LyX/MiKTeX/Windows 7. I did as instructed at http://www.linuxlibertine.org/index.php?id=91&L=1 Downloaded the archived OTF files (Open Type Font). Unzipped into an auxiliary directory. Copied OTF-files into C:\Windows\Fonts. Restarted LyX. Selected "Document Settings > Fonts > Use non-Tex Fonts". The newly added Linux Libertine fonts were available through the drop down menu for fonts. For PDF generation, used "View > PDF(XeTeX)". Everything worked right away. Thank you, and best wishes, Leonid.
Re: Vector Fonts for Russian-English LyX document
Uwe, Please, allow me to share some results. 1. MiKTeX placement on a D-partition. -- I was barking up the wrong tree. MiKTeX worked fine in this configuration. No problems with updating. 2. New package installation. -- I "installed" the font packages using the "MiKTeX Package Manager". But then I was supposed to "Update the file name data base" and to "Update all format files" in the "MiKTeX Options (Admin) > General" dialog. Initially, I overlooked that. Now I did it. Perhaps, you'll save a score of other chaps by reminding them about that point in your http://wiki.lyx.org/Windows/Cyrillic 3. Non-default fonts. -- I could swear your sample LyX was still producing a bitmapped Russian on my system, even after I corrected my error in the installation of new latex fonts. But then I tried a Latin Modern Roman (perhaps, a T2A encoding, too, can't be sure anymore). That produced the vector fonts, for a first time. After that, I could revert back to your original settings, all defaults. Now the bitmapped fonts were gone for good. So, it appears that there was an "on-the-fly" change in the font configuration. Behind the scenes. (Not controlled by my Latex code anymore. But I am grateful for this outcome). I am not sure whether the remaining questions are a legitimate followup or a separate entry. But I'll dare to ask. 4. Font change. -- Suppose I need to switch between several different font designs in the body of a document (say, between "Latin Modern" and "Palatino"). What are the Latex commands? 5. Latex font names. -- How can I learn which fonts are available on my system and what are their "Latex" names which can be used in these commands? 6. Character sets in the fonts -- How can I learn which symbols are available in which fonts? 7. Settings combinations -- How can I learn legitimate combinations of input encodings, font encodings and font names? Once again, you saved me a lot of frustration, thank you. Best regards, Leonid.
Re: Vector Fonts for Russian-English LyX document
Liviu, Thank you! Both your's and Uwe's replies (and the LyX samples) were critical in sorting out what went wrong. For one thing, I did not quite complete the installation of the font packages. No less importantly, I was selecting 'wrong' fonts (never tried 'DejaVu Serif' before). Now all 3 converters work properly, PDF(pdflatex|luatex|xetex). Each produces a vector font. Actually, I did study all I saw on the list about the Multilingual documents. But it didn't help until I got your LyX samples. There is a huge combinatorial space of what can go wrong. And did it go, in my case. I am now slightly puzzled as to why I couldn't get the desired result via Lua and XeTeX before I installed the new Latex fonts. I did try both. And I would expect they should not depend on these fonts. Yet, the results were either errors, or missing Russian text, or bitmapped Russian. On the other hand, I no longer remember all combinations of input encodings, Latex font encodings, font selections, and PDF converters that I tried. Perhaps, that explains the difference. I also had a chance to appreciate your advice of preferring 'non-Latex fonts + PDF(luatex | xetex)' over the 'Latex fonts + pdflatex'. Indeed, the choice of beautiful fonts is way greater. And then there is no headache anymore to decide a latex font encoding. I will post the rest of my report in a reply to Uwe. With kind regards, Leonid.
Re: Vector Fonts for Russian-English LyX document
Uwe, Really appreciate your coming to rescue. It's a month since I am lost in the ocean of Tex-reading and still didn't know where to start digging. I tested your attached sample. I exactly followed your instructions at http://wiki.lyx.org/Windows/Cyrillic. Now English text is rendered in a vector font, but the Russian one is still bitmapped in PDF. Perhaps, something didn't work out right with my installation of either MiKTeX itself or the 'cm-super' and 'cmcyr' font packages. In fact, as I already described in my initial post, I did install these two packages just as you said, using the MiKTeX's package manager. But I have two suspicions to examine. 1. Firstly, my MiKTeX installation is somewhat unorthodox in that I destined it to 'D:'-partition of my hard drive (just to stay insulated from any possible crashes and re-installations of the system 'C:'-partition). Still, I see some new folders and files are being created in 'C:\Program Data' and 'C:\Users'. I am wondering if the internal scripts are properly allowing for a possibility of such structure of directories. 2. When running the MiKTeX's package manager, I didn't see any obvious visual cue as to when the installation is fully complete. After the text messages (the number of downloaded and installed files) stopped changing, the window just froze. So, I waited for some several minutes, then closed it. The two packages were marked as installed both in 'Package Manager (Admin)' and in 'MiKTeX Options (Admin)' But now I am wondering if it is possible that I have interrupted the installation before it was fully over. I will try to re-install everything and let you know the results. Many thanks for this help, Leonid
Vector Fonts for Russian-English LyX document
I am typesetting a LyX document with a liberal mix of English and Russian. No matter what I try, a LyX command "View[PDF(latex)]" produces pixeled bitmapped fonts in PDF. Please, help by walking me through a FULL sequence of steps to ensure VECTOR fonts for both Russian and English. Details: Platform: LyX 2.0.5 MiKTeX 2.9 Windows 7 64 bit Here is a sample of plain Latex input file imported into LyX: \documentclass[10pt]{article} \usepackage[T1,T2A]{fontenc} \usepackage[utf8]{inputenc} %\usepackage[T1]{fontenc} %\usepackage[russian,english]{babel} \begin{document} Russian writing (русское письмо) \end{document} Following your threads about Cyrillic\Russian vector fonts, I have installed a 'cm-super' package from CTAN, using MiKTeX's package manager (included with the MiKTeX distribution). But I am not sure whether LyX/MiKTeX "sees" this package. I tried to "force" LyX to use T1 fontencoding only, without T2A (a commented line above). But that leads to a latex errmsg: Command \cyrr unavailable in encoding T1. Using 'babel' (commented out above) didn't help either. Nor "View[PDF(lualatex)]" could help. Nor "\foreignlanguage{russian}{}" or "\selectlanguage{russian}{}". 1. What did I miss? 2. How do I verify that Russian vector fonts are properly installed and available? I not, then how should I install them? 3. Should I have added some further commands into preamble and/or document body? Thank you for your time
Re: cfrac do not compile
Vincent van Ravesteijn lyx.org> writes: > > On Thu, Jun 24, 2010 at 11:13 AM, Leonid Baranov > gmail.com> wrote: > > Please, help to compile "\cfrac". > > > > Apparently, there is a bug in LyX 1.6.x that we don't use the package > amsmath when cfrac is used. > > To solve this, you can go to "Document->Settings->Math Options". > Uncheck the first checkbox and check the second one. > Vincent, many thanks. Your work around worked as you prescribed. Truly appreciate your prompt help. Best regards -- Leonid
cfrac do not compile
Please, help to compile "\cfrac". Thank you for your time -- Leonid Baranov Description: When used in a displayed formula, a chained fraction is properly rendered by the LyX GUI. When I try to obtain PDF (pdflatex), LaTeX fails to compile. Latex Errors Log: ! Undefined control sequence. 1+\cfrac {(S-1)}{2} l.95 ... \frac{1}{2}\,\frac{1}{1+\cfrac{(S-1)}{2}} \nonumber \\ The control sequence at the end of the top line of your error message was never \def'ed. ... Details: My platform: Windows Vista 64 bit LyX installation used: LyX-1661-4-24-AltInstaller-Complete.exe LyX version: 1.6.6.1(May 28, 2010), Windows Document class: article (REVTeX 4) Class options: Predefined (aps, manuscript) Math Options: (Default): Use AMS math package automatically Use esint package automatically LaTeX Preamble: Empty