Re: Shortcut for cropped PDF?

2022-08-30 Thread sovhist via lyx-users


On rgp 30 2022, at 6:15 pm, Paul A. Rubin  wrote:

> On 8/30/22 06:33, Daniel wrote:
>> On 2022-08-30 01:28, Paul A. Rubin wrote:
>>> On 8/29/22 17:48, Christopher Menzel wrote:
 Yo, works like a charm! I gave “pdf6” a try (can’t remember what my  
 justification was!) but didn’t try “7”! Is this documented  
 somewhere? And what determines the relevant number after “pdf”?
  
 Thanks!!
  
 -c
  
> On 29 Aug 2022, at 4:44 PM, Paul A. Rubin  wrote:
>  
> On 8/29/22 17:28, Christopher Menzel wrote:
>> Howdy LyX folk,
>>  
>> Simple question. When I’m working on my laptop (or frankly  
>> anything short of a 27” monitor) I display my documents use PDF  
>> (cropped) to strip away unneeded marginal whitespace. Is there a  
>> way to set up a keyboard shortcut to update my cropped PDFs?  
>> Something that will trigger the action I get by selecting “Update  
>> PDF (cropped)” from the little “recycle” icon? The only shortcut  
>> function that seems to work for updating is “pdf2” and that  
>> produces a full-size PDF. I’ve looked through all the  
>> documentation I could find and did a bunch of googling but to no  
>> avail.
>>  
>> Thanks.
>>  
>> Chris Menzel
>>  
> You can bind a key combo to "buffer-update pdf7". If you want  
> another shortcut for generating the initial cropped PDF file, bind  
> that one to "buffer-view pdf7". If that doesn't work, go to Tools
> >  
> Preferences... > File Handling > File Formats, selected "PDF  
> (cropped)" in the "Format:" drop-down list, and make sure the  
> "Short name:" field on your system reads "pdf7".
>  
> Paul
>  
> --  
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
  
>>> The "buffer-update" command is documented in the "LyX Functions"  
>>> manual (available from the Help menu). As to the "7", it's just an  
>>> ordinal. I suspect the short names were assigned in the order that  
>>> formats were added to LyX. So in the beginning there was ps2pdf  
>>> ("pdf'),, then pdflatex ("pdf2") and dvipdfm ("pdf3"), etc. Although  
>>> I can't rule out the possible involvement of a random number generator.
>>>  
>>> Paul
>>  
>> I guess the "buffer-update" command is a little under-documented. It  
>> is a bit unclear what exactly "one of the formats defined (in the  
>> current GUI) in the Tools>Preferences>File Formats dialog" means. I  
>> have no idea what "the current GUI" has to do with it. Rather it
>> seems  
>> to be whatever is under "Short name" (which itself isn't very clear).  
>> Also, it is "Tools>Preferences*>File Handling*>File Formats" these  
>> days (which itself is not a dialog).
>>  
>> Daniel
>>  
> I agree with the "under-documented" characterization. When answering
> the  
> question, I figured out that the likely name for the command was  
> "buffer-update" (mainly based on past spelunking for other things in
> the  
> "LyX Functions" manual). After reading the entry, my instinct was to
> try  
> "buffer-update PDF (cropped)" and then "buffer-update 'PDF
> (cropped)'",  
> neither of which worked. Looking at the file formats entry for "PDF  
> (cropped)", I happened to notice the short name and gave that a  
> (successful) try. Specifically mentioning the short name in the  
> documentation would be an improvement.
>  
> Paul
>  
> --  
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
>  

Hello.

There is much quicker way to find names of the commands than to search
the documentation. You can open Messages pane (View – Messages pane) and
do whatever action you want. The name of the command of that action will
be written in the pane and after that you can create shortcut for it. It
is my usual way in creating shortcuts.

Best regards,

Valdemaras
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Shortcut for cropped PDF?

2022-08-30 Thread Paul A. Rubin

On 8/30/22 11:28, sovhist wrote:


On rgp 30 2022, at 6:15 pm, Paul A. Rubin  wrote:


On 8/30/22 06:33, Daniel wrote:

On 2022-08-30 01:28, Paul A. Rubin wrote:

On 8/29/22 17:48, Christopher Menzel wrote:

Yo, works like a charm! I gave “pdf6” a try (can’t remember what my
justification was!) but didn’t try “7”! Is this documented
somewhere? And what determines the relevant number after “pdf”?
  
Thanks!!
  
-c
  

On 29 Aug 2022, at 4:44 PM, Paul A. Rubin  wrote:
  
On 8/29/22 17:28, Christopher Menzel wrote:

Howdy LyX folk,
  
Simple question. When I’m working on my laptop (or frankly

anything short of a 27” monitor) I display my documents use PDF
(cropped) to strip away unneeded marginal whitespace. Is there a
way to set up a keyboard shortcut to update my cropped PDFs?
Something that will trigger the action I get by selecting “Update
PDF (cropped)” from the little “recycle” icon? The only shortcut
function that seems to work for updating is “pdf2” and that
produces a full-size PDF. I’ve looked through all the
documentation I could find and did a bunch of googling but to no
avail.
  
Thanks.
  
Chris Menzel
  

You can bind a key combo to "buffer-update pdf7". If you want
another shortcut for generating the initial cropped PDF file, bind
that one to "buffer-view pdf7". If that doesn't work, go to Tools
  

Preferences... > File Handling > File Formats, selected "PDF
(cropped)" in the "Format:" drop-down list, and make sure the
"Short name:" field on your system reads "pdf7".
  
Paul
  
--

lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users
  

The "buffer-update" command is documented in the "LyX Functions"
manual (available from the Help menu). As to the "7", it's just an
ordinal. I suspect the short names were assigned in the order that
formats were added to LyX. So in the beginning there was ps2pdf
("pdf'),, then pdflatex ("pdf2") and dvipdfm ("pdf3"), etc. Although
I can't rule out the possible involvement of a random number generator.
  
Paul
  
I guess the "buffer-update" command is a little under-documented. It

is a bit unclear what exactly "one of the formats defined (in the
current GUI) in the Tools>Preferences>File Formats dialog" means. I
have no idea what "the current GUI" has to do with it. Rather it
seems
to be whatever is under "Short name" (which itself isn't very clear).
Also, it is "Tools>Preferences*>File Handling*>File Formats" these
days (which itself is not a dialog).
  
Daniel
  

I agree with the "under-documented" characterization. When answering
the
question, I figured out that the likely name for the command was
"buffer-update" (mainly based on past spelunking for other things in
the
"LyX Functions" manual). After reading the entry, my instinct was to
try
"buffer-update PDF (cropped)" and then "buffer-update 'PDF
(cropped)'",
neither of which worked. Looking at the file formats entry for "PDF
(cropped)", I happened to notice the short name and gave that a
(successful) try. Specifically mentioning the short name in the
documentation would be an improvement.
  
Paul
  
--

lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users
  

Hello.

There is much quicker way to find names of the commands than to search
the documentation. You can open Messages pane (View – Messages pane) and
do whatever action you want. The name of the command of that action will
be written in the pane and after that you can create shortcut for it. It
is my usual way in creating shortcuts.

Best regards,

Valdemaras
Thanks for the tip. I had tried opening the command buffer and looking 
there (which did not work) rather than the Messages pane.


Paul

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Shortcut for cropped PDF?

2022-08-30 Thread Paul A. Rubin

On 8/30/22 06:33, Daniel wrote:

On 2022-08-30 01:28, Paul A. Rubin wrote:

On 8/29/22 17:48, Christopher Menzel wrote:
Yo, works like a charm! I gave “pdf6” a try (can’t remember what my 
justification was!) but didn’t try “7”! Is this documented 
somewhere? And what determines the relevant number after “pdf”?


Thanks!!

-c


On 29 Aug 2022, at 4:44 PM, Paul A. Rubin  wrote:

On 8/29/22 17:28, Christopher Menzel wrote:

Howdy LyX folk,

Simple question. When I’m working on my laptop (or frankly 
anything short of a 27” monitor) I display my documents use PDF 
(cropped) to strip away unneeded marginal whitespace. Is there a 
way to set up a keyboard shortcut to update my cropped PDFs? 
Something that will trigger the action I get by selecting “Update 
PDF (cropped)” from the little “recycle” icon? The only shortcut 
function that seems to work for updating is “pdf2” and that 
produces a full-size PDF. I’ve looked through all the 
documentation I could find and did a bunch of googling but to no 
avail.


Thanks.

Chris Menzel

You can bind a key combo to "buffer-update pdf7". If you want 
another shortcut for generating the initial cropped PDF file, bind 
that one to "buffer-view pdf7". If that doesn't work, go to Tools > 
Preferences... > File Handling > File Formats, selected "PDF 
(cropped)" in the "Format:" drop-down list, and make sure the 
"Short name:" field on your system reads "pdf7".


Paul

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


The "buffer-update" command is documented in the "LyX Functions" 
manual (available from the Help menu). As to the "7", it's just an 
ordinal. I suspect the short names were assigned in the order that 
formats were added to LyX. So in the beginning there was ps2pdf 
("pdf'),, then pdflatex ("pdf2") and dvipdfm ("pdf3"), etc. Although 
I can't rule out the possible involvement of a random number generator.


Paul


I guess the "buffer-update" command is a little under-documented. It 
is a bit unclear what exactly "one of the formats defined (in the 
current GUI) in the Tools>Preferences>File Formats dialog" means. I 
have no idea what "the current GUI" has to do with it. Rather it seems 
to be whatever is under "Short name" (which itself isn't very clear). 
Also, it is "Tools>Preferences*>File Handling*>File Formats" these 
days (which itself is not a dialog).


Daniel

I agree with the "under-documented" characterization. When answering the 
question, I figured out that the likely name for the command was 
"buffer-update" (mainly based on past spelunking for other things in the 
"LyX Functions" manual). After reading the entry, my instinct was to try 
"buffer-update PDF (cropped)" and then "buffer-update 'PDF (cropped)'", 
neither of which worked. Looking at the file formats entry for "PDF 
(cropped)", I happened to notice the short name and gave that a 
(successful) try. Specifically mentioning the short name in the 
documentation would be an improvement.


Paul

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Shortcut for cropped PDF?

2022-08-30 Thread Daniel

On 2022-08-30 01:28, Paul A. Rubin wrote:

On 8/29/22 17:48, Christopher Menzel wrote:
Yo, works like a charm! I gave “pdf6” a try (can’t remember what my 
justification was!) but didn’t try “7”! Is this documented somewhere? 
And what determines the relevant number after “pdf”?


Thanks!!

-c


On 29 Aug 2022, at 4:44 PM, Paul A. Rubin  wrote:

On 8/29/22 17:28, Christopher Menzel wrote:

Howdy LyX folk,

Simple question. When I’m working on my laptop (or frankly anything 
short of a 27” monitor) I display my documents use PDF (cropped) to 
strip away unneeded marginal whitespace. Is there a way to set up a 
keyboard shortcut to update my cropped PDFs? Something that will 
trigger the action I get by selecting “Update PDF (cropped)” from 
the little “recycle” icon? The only shortcut function that seems to 
work for updating is “pdf2” and that produces a full-size PDF. I’ve 
looked through all the documentation I could find and did a bunch of 
googling but to no avail.


Thanks.

Chris Menzel

You can bind a key combo to "buffer-update pdf7". If you want another 
shortcut for generating the initial cropped PDF file, bind that one 
to "buffer-view pdf7". If that doesn't work, go to Tools > 
Preferences... > File Handling > File Formats, selected "PDF 
(cropped)" in the "Format:" drop-down list, and make sure the "Short 
name:" field on your system reads "pdf7".


Paul

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


The "buffer-update" command is documented in the "LyX Functions" manual 
(available from the Help menu). As to the "7", it's just an ordinal. I 
suspect the short names were assigned in the order that formats were 
added to LyX. So in the beginning there was ps2pdf ("pdf'),, then 
pdflatex ("pdf2") and dvipdfm ("pdf3"), etc. Although I can't rule out 
the possible involvement of a random number generator.


Paul


I guess the "buffer-update" command is a little under-documented. It is 
a bit unclear what exactly "one of the formats defined (in the current 
GUI) in the Tools>Preferences>File Formats dialog" means. I have no idea 
what "the current GUI" has to do with it. Rather it seems to be whatever 
is under "Short name" (which itself isn't very clear). Also, it is 
"Tools>Preferences*>File Handling*>File Formats" these days (which 
itself is not a dialog).


Daniel



--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: xfig in LyX > no special flag choosable

2022-08-30 Thread Wolfgang Engelmann



Am 27.08.22 um 13:59 schrieb Wolfgang Engelmann:

Slightly OT:
Is somebody using xfig in LyX? I can't find in the Text Flags the 
special flag, only


hidden
rigid
tex

Do I miss something besides the xfig program (version 3.2.8)?


Would like to come back to this question.
Apparently the version of Xfig is now using Tex flag TEX in the Tex 
flags instead of special flag.

I selected and set it.

I have included a lyx file with an xfig included.

I had exported from the fig file the three files also included.

I expected after running lyx to get a pdf output with the Delta and Psi 
in Greek. However, there are still $\Delta$ and $\Psi$


my lyx under Debian Bullseye is
Version 2.4.0dev (not released yet)
Built from git commit hash 53ed3dc0
Qt Version (run-time): 5.15.2 on platform xcb
Qt Version (compile-time): 5.15.2
Python detected: python3 -tt

and I use the luatex setting
with
\usepackage{libertinus-otf}
in the preamble

and xfig 3.2.8

Could somebody tell me why I won't get the expected pdf output

Would appreciate it very much!

Wolfgang\begin{picture}(0,0)%
\includegraphics{Prytz-Scheme_pspdftex}%
\end{picture}%
\setlength{\unitlength}{4144sp}%
%
\begingroup\makeatletter\ifx\SetFigFont\undefined%
\gdef\SetFigFont#1#2#3#4#5{%
  \reset@font\fontsize{#1}{#2pt}%
  \fontfamily{#3}\fontseries{#4}\fontshape{#5}%
  \selectfont}%
\fi\endgroup%
\begin{picture}(8067,7707)(2341,-6988)
\end{picture}%


Prytz-Scheme_pspdftex.pdf
Description: Adobe PDF document


Lyx-xfig.lyx
Description: application/lyx
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users