<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<br>
<div class="moz-cite-prefix">On 10/22/24 12:34 PM, Luciano
Notarfrancesco via Cuis-dev wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAL5GDyo4K+Z13eN2xz10urYPVVR3D=qwknDvWYNzHhDLFMTCDA@mail.gmail.com">
<pre class="moz-quote-pre" wrap="">I don’t know what others think, but IMO we could make it a preference, or
we could make Character class>>namedCharactersMap empty in the base image
and have an optional package to load all the default table, or let
individual packages add the symbols that they need (in my packages I add
extra symbols sometimes, specially when they are not latex standard names).
Gerald, you need to edit latex in a text editor inside Cuis? This is
implemented only in SmalltalkEditor, so you could use a normal TextEditor
instead? or you need to write latex in Smalltalk code?
On Tue, Oct 22, 2024 at 17:07 Gerald Klix via Cuis-dev <
<a class="moz-txt-link-abbreviated" href="mailto:cuis-dev@lists.cuis.st">cuis-dev@lists.cuis.st</a>> wrote:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">Hi all, Hi Juan,
Is there interest in making the expansion of LaTex symbols like
"\euro" optional?
I just started to write a LaTex based report generator
and found e.g. the automatic expansion "\euro" a pain in
my bottom. The report should contain the LaTex command
"\euro" and not "€".
Best Regards,
Gerald
--
Cuis-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Cuis-dev@lists.cuis.st">Cuis-dev@lists.cuis.st</a>
<a class="moz-txt-link-freetext" href="https://lists.cuis.st/mailman/listinfo/cuis-dev">https://lists.cuis.st/mailman/listinfo/cuis-dev</a>
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
</blockquote>
Luciano, thanks for your fast response.<br>
<br>
I do not edit Latex code in a workspace, I write<br>
methods that write latex into a file(stream).<br>
<br>
Entering a code like this is, well, a bit complicated<br>
<br>
<tt>generateTextForTransaction: aTransaction <br>
"Generate the text for aTransaction."<br>
<br>
self latexStream<br>
newLine;<br>
nextPutAll: '\begin{tabular}{ll}';<br>
newLine;<br>
nextPutAll: 'Datum:&'.<br>
aTransaction entryDate printGermanOn: self latexStream.<br>
self latexStream<br>
nextPutAll: '\\';<br>
newLine;<br>
nextPutAll: 'Betrag:&'.<br>
aTransaction amount abs printGermanOn: self latexStream
fractionDigits: 2.<br>
self latexStream<br>
nextPutAll: '\euro\\';<br>
newLine;<br>
nextPutAll: 'Text:&';<br>
nextPutAll: (aTransaction text asString replaceAll: $_
with: `Character space`);<br>
newLine;<br>
nextPutAll: '\end{tabular}'<br>
<br>
</tt>My first thought was that a preference might be useful,<br>
but on second thought a menu option in the Smalltalk editor<br>
and an additional preference is more useful.<br>
<br>
The best solution are two packages,<br>
one that adds a registry for text substitutions to<br>
various editor classes and another one that adds<br>
the Latex stuff.<br>
<br>
Considering that, we two guys, seem to be the only users of this<br>
features, this solution might be overkill.<br>
Currently I only had to fiddle with the Euro-Sign,<br>
maybe I can get away with this.<br>
<br>
<br>
Again thanks a lot,<br>
<br>
Gerald<br>
<tt></tt>
</body>
</html>