I created a table in LaTeX in the Premables.
Original code below, Premables without the code, and a PDF output of it - I put placeholders (just text) for different kinds of text that I want to put in the table (denoted in [X] where X is some text:
My question is:
Is it possible to create some variables/something else which will enable me to edit those texts directly, in LyX's user interface? What I want to do is not edit/write the the code every single time, and just write the texts, to avoid going to the Premables every time I create a new document in which I want this table.
preamble.tex
with you costumized code and put only\input{preamble.tex}
in your LyX preamble.premable.tex
file into my LyX file? I want to do something like sending values into functions, such that what would be printed would be the values that I sent. Like in programming:print("hey")
, whereprint
is the function, and"hey"
is a text input.\input{...}
only loadpreamble.tex
into your file. If you want to do a\newcommand
, you can put it both in yourpreamble.tex
or directly in your LyX file using ERT.