[Cuis-dev] [RFC] Make \<latex symbol> expansion switchable?
Juan Vuletich
juan at cuis.st
Tue Oct 22 07:17:42 PDT 2024
Hi Folks,
I just added a new preference. See update #6788.
I don't think the extra complexity in Editor is worth until we see the
need to have some editors doing the replacement and others not doing it,
at the same time, and by several users... We'll see.
In #normalCharacter: there are a couple of comments with expressions to
enable / disable it, and also to make it persistant in UserPrefs.txt.
I hope this helps. Thanks,
On 10/22/2024 7:55 AM, Gerald Klix via Cuis-dev wrote:
>
>
> On 10/22/24 12:34 PM, Luciano Notarfrancesco via Cuis-dev wrote:
>> 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<
>> cuis-dev at lists.cuis.st> wrote:
>>
>>> 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
>>> Cuis-dev at lists.cuis.st
>>> https://lists.cuis.st/mailman/listinfo/cuis-dev
>>>
>>
> Luciano, thanks for your fast response.
>
> I do not edit Latex code in a workspace, I write
> methods that write latex into a file(stream).
>
> Entering a code like this is, well, a bit complicated
>
> generateTextForTransaction: aTransaction
> "Generate the text for aTransaction."
>
> self latexStream
> newLine;
> nextPutAll: '\begin{tabular}{ll}';
> newLine;
> nextPutAll: 'Datum:&'.
> aTransaction entryDate printGermanOn: self latexStream.
> self latexStream
> nextPutAll: '\\';
> newLine;
> nextPutAll: 'Betrag:&'.
> aTransaction amount abs printGermanOn: self latexStream
> fractionDigits: 2.
> self latexStream
> nextPutAll: '\euro\\';
> newLine;
> nextPutAll: 'Text:&';
> nextPutAll: (aTransaction text asString replaceAll: $_ with:
> `Character space`);
> newLine;
> nextPutAll: '\end{tabular}'
>
> My first thought was that a preference might be useful,
> but on second thought a menu option in the Smalltalk editor
> and an additional preference is more useful.
>
> The best solution are two packages,
> one that adds a registry for text substitutions to
> various editor classes and another one that adds
> the Latex stuff.
>
> Considering that, we two guys, seem to be the only users of this
> features, this solution might be overkill.
> Currently I only had to fiddle with the Euro-Sign,
> maybe I can get away with this.
>
>
> Again thanks a lot,
>
> Gerald
--
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20241022/f21752c7/attachment.htm>
More information about the Cuis-dev
mailing list