0

In the “File > Export in” there is a paragraph More Formats & Opnions. Show me please how to enter the option. There, where “Send exported file to command” for example, you can enter? Where in the manual about it written? Whether, when jeksportiruesh with options, add LyX in PATH?

  • Forgot to say hello. Hello. – D. Suhachev Sep 23 '18 at 12:22
  • Note that you don't need to enter anything in the text box "Send exported file to command". The main purpose of that option is to select a different format. What exactly do you want to do? i.e., what is your goal that you would like to achieve? – scottkosty Sep 23 '18 at 15:47
  • I just want to know why there's a text box. After all, it is obviously to type some text. What? Although you claim the opposite. Moreover there appears in a ToolTip $$FName. Clearly for keyboard input. In the input box on the right side there is a triangle. Obviously, it is used to select the previously executed commands typed at the keyboard. What, for instance? Can you give examples? – D. Suhachev Sep 23 '18 at 18:07
  • I see. I'll make an attempt at an answer. – scottkosty Sep 23 '18 at 19:20
1

The text box "Send exported file to command" is for advanced users familiar with the command line, who would like to execute a command on the exported file.

For example, I can print a file on the command line with the following:

lpr -P MFCL2740DW <filename>

This particular command won't work for you unless you use unix and happen to have a printer named "MFCL2740DW". Note that this command has nothing to do with LyX. It is interpreted by a "shell" (e.g., Bash). Although LyX knows nothing about this command, it still allows us to use it from within LyX: if I would like to print a PDF file directly from LyX, I could go to "More Formats & Options", select "PDF (pdflatex)" and in the text box I could put:

lpr -P MFCL2740DW $$FName

Then, LyX will export the file to PDF, and will then ask the shell to run the following command:

lpr -P MFCL2740DW <filename>

Again, LyX knows nothing about the command "lpr". All it does is it substitutes $$FName for the file name that it exported (that part, LyX does know).

The lpr command above is just an example. Any command that you would want to run on an exported file, you can. For example, you could write a command that sends the exported file in an email to your co-author.

  • Literally 40 minutes ago I was using the line imposed by the team got in the folder …\Windows\system32 pdf When processing from the text box the file .lyx, located not in specified folder. Part of this command $$FName, still there was, recover completely command fails. Now will translate the message before the message. – D. Suhachev Sep 23 '18 at 20:05
  • Command line I know. The lucky winner of the printer has not yet become. So I had to make do with what I have. – D. Suhachev Sep 24 '18 at 18:38
  • At first I was using “File > Export in > More Formats & Opnions” exported in LaTeX(plain) without options. Received file .tex in the folder specified in Tools > Settings > Пути > User directory. I deleted this file. Then I added the following in the text box: pdflatex $$FName. Look like this was so: . The files generated are usually when processing files by LyX, including full .PDF form in a folder C:\Program Files\LyX 2.0\bin. Anyone knows how can I change this folder through a text box? – D. Suhachev Sep 24 '18 at 18:39
  • 1
    I have found a solution to this problem: tex.stackexchange.com/questions/355122/…. The result was that in the text field, you can enter, for example, the following code: pdflatex -output-directory="C:\Zadachi" $$FName. Here is the only way there should be no Cyrillic letters. On the one hand, it is bad: I'm Russian. On the other hand, it is not critical. @scottkosty, Thank you very much for the help. – D. Suhachev Sep 24 '18 at 20:46
  • 1
    And you have a good shot to experiment. You have talent not knowing the program quickly sorted out.: Again thank you very much. – D. Suhachev Sep 29 '18 at 11:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.