Hi All,
I'm trying to create a command that will apply a consistent style to a
word or phrase. For example, when documenting source code, I'd like to
be able to mark variables with \Var{var_name}. Then if I want the
variable names to be in mono, I can \def\Var#1{\type{#1}}. No problem
Am 08.01.2010 um 17:27 schrieb Tad Ashlock:
Hi All,
I'm trying to create a command that will apply a consistent style to a word
or phrase. For example, when documenting source code, I'd like to be able to
mark variables with \Var{var_name}. Then if I want the variable names to be
in
What about:
\def\Var#1#2{'\type{#1}%
\directlua{
if #2 == , then
tex.sprint(#2')
else
tex.sprint('#2)
end}}
\Var{555}, hello \Var{666}. \Var{666}\par
On Fri, Jan 08, 2010 at 09:27:37AM -0700, Tad Ashlock wrote:
Hi All,
I'm trying to create a command that will apply a consistent style
Wolfgang Schuster wrote:
Am 08.01.2010 um 17:27 schrieb Tad Ashlock:Hi All,
\startluacode
function move_end_punctuation (text, punc, cmd_start, cmd_mid, cmd_end)
context(cmd_start .. text .. cmd_mid)
if string.find('.,!?', punc, 1, true) then
context(punc ..
Khaled Hosny wrote:
On Fri, Jan 08, 2010 at 09:27:37AM -0700, Tad Ashlock wrote:
==
\startluacode
function move_end_punctuation (text, punc, cmd_start, cmd_mid, cmd_end)
context(cmd_start .. text .. cmd_mid)
if string.find('.,!?', punc, 1, true) then