On rgp 30 2022, at 6:15 pm, Paul A. Rubin <parubi...@gmail.com> 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 <parubi...@gmail.com> 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

Reply via email to