LyX generated preamble package loading order.
Folsk Pratima
folsk0pratima at cock.li
Fri Aug 4 07:27:28 UTC 2023
/On Thu Aug 3 13:42:06 UTC 2023///, *Pavel Sanda* wrote:
>I am afraid you will need to use the hackish solution.
>https://www.lyx.org/trac/ticket/5366
Then there is still a question as to why the declared module does not do
what it is supposed to do? Or do you think I should create a different
thread for this question? As far as I understand from reading LyX
Customization manual it seems to me that the .module files exist exactly
for the purpose of user declared modules. I assumed that I need to
"trigger" LyX to use my module, so I modified it as shown at the end of
this message. I then used the style in my document. The resulting LaTeX
code it there as well. As you can see, no *titlesec* at all.
/On Thu Aug 3 15:08:25 UTC 2023/, *Kornel Benko* wrote:
>Maybe a local format containing > > Format 104 > Provides
hyperref 1 >helps?
Not really. Because I can disable *hyperref* support in Document ->
Settings -> PDF Properties as well, with pretty much the same result.
The "hackish" part about this is that I have to enable *hyperref*
support, then look up the generated code in the preamble, copy it to my
custom preamble and then disable it again. I do not consider this to be
a lot of trouble, because you are likely to only do it once, yet it
seems to me we could have a cleaner solution.
Module source code:
#\DeclareLyXModule[titlesec.sty]{Custom Titles} #DescriptionBegin
#Adds titlesec package functionality to redefine appearance #of
existing titles, such as \section{} or \paragraph{} #DescriptionEnd
Format 66 Style ModulePleaseWork CopyStyle Quotation End
Generated LaTeX code:
% Preview source code %% LyX 2.3.6 created this file. For more info,
see http://www.lyx.org/. %% Do not edit unless you really know what
you are doing. \documentclass[english]{article}
\usepackage[T1]{fontenc} \usepackage[latin9]{inputenc}
\usepackage{babel} \begin{document} \begin{quotation} Module please
work! \end{quotation} \end{document}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20230804/8764e86d/attachment-0001.html>
More information about the lyx-users
mailing list