Marduk Bolaños | 6 Feb 02:20 2016
Picon

A recipe to crash TeXmacs

Dear all,

While learning to write macros, I discovered that it is very
easy to crash TeXmacs if one is not careful.

Following the manual I wanted to define this macro:

<assign|hello|<macro|name|Hello
<with|font-shape|small-caps|name>!>>

But instead I entered

<assign|hello<macro|name|Hello
<with|font-shape|small-caps|name>!>|>

Then I pressed Return several times and TeXmacs crashed
(quit). The latest version does not quit but an error window
comes up and the whole line is deleted.

I verified that this bug exists since at least 2011.

I know that one is not supposed to write grammatically
incorrect macros, but one can do it.

Either it should not be possible to do it or TeXmacs should
fail more gracefully.

This bug is of great importance for TeXmacs users in Ubuntu,
given that an old version was included in recent Ubuntus.

(Continue reading)

Karl Hegbloom | 15 Jan 20:40 2016
Picon
Gravatar

Long documents, show one part, vs show all parts, slow input

When I have a long document with all parts showing, it's too slow to use it because it is trying to keep retypesetting the entire thing. So when I have it show only one part, it's fast enough to use.

Why not have it keep a page-break cache, or for papyrus paper type a cache of waypoints, like headings or paragraphs, gotten from typesetting only once through, for up until just before the part that's actually on the screen. Since nothing is changing anywhere off-screen as I type except for after the part that's on screen, it only needs to know the cached location just before the screen display starts in order to format the part that's on the screen now. And everything below the bottom of the screen doesn't need to be retypeset every time I enter a character either.

Of course, the newest Guile with the virtual machine and byte code compiler will also make a huge difference. I wish I had enough free time to learn how to be the one that does this work. Unfortuneatly, I will be too busy at least until next autumn... and don't count on my having enough time to learn enough about it then and to do the work. I'll help if I can. I hope that a very bright student is preparing to take on this work. It will make TeXmacs a lot better!

I'm not a TeXmacs developer and don't understand very much about it's internals at this point in time. I would like to... but am too busy using it to write legal documents right now. :-)
_______________________________________________
Texmacs-dev mailing list
Texmacs-dev <at> gnu.org
https://lists.gnu.org/mailman/listinfo/texmacs-dev
Marco Atzeri | 18 Dec 21:48 2015
Picon

TeXmacs-1.99.4 build failure

Hi,
I am the current packager for cygwin.
While building 1.99.4 with

configure --with-iconv=/usr --with-imlib2=linked --with-gs
--with-qt=${QT4_QTDIR}

the build stop at

g++ -lz -Wl,-stack,8388608 -dynamic Objects/ANSIFontWriter.o 
Objects/AbstractContentContext.o Objects/AbstractWrittenFont.o 
Objects/Ascii7Encoding.o Objects/CFF ...
[cut]
-L/usr/lib -lQtGui -lQtCore -L/usr/lib -liconv -lguile -lltdl -lgmp 
-lcrypt -lm -lltdl -lImlib2 -lz -lfreetype -ldl -ldl -o 
Objects/texmacs-shared.bin
Objects/pipe_link.o:pipe_link.cpp:(.text+0xd13): undefined reference
to `remove_notifier(socket_notifier)'
[cut]
Objects/pipe_link.o:pipe_link.cpp:(.text+0x1296): undefined reference to 
`add_notifier(socket_notifier)'
[cut]
Objects/tm_server.o:tm_server.cpp:(.text+0x142b): undefined reference to 
`perform_select()'
[cut]
collect2: error: ld returned 1 exit status
makefile:436: recipe for target 'Objects/texmacs-shared.bin' failed

For what I see on src/System/Link/socket_notifier.cpp
the "#ifndef QTTEXMACS"  excludes the definition of
   remove_notifier, perform_select and add_notifier

as CPPFLAGS =  .. -DQTTEXMACS

while on pipe_link.cpp the equivalent check

"#if !(defined (QTTEXMACS) && (defined (__MINGW__) || defined 
(__MINGW32__) || defined (QTPIPES)))"

has not the same effect, as on CYGWIN it is true,
and remove_notifier is used.
May be the check should be written differently ?

Question:
   "remove_notifier" and similars should be defined or not ?

On TeXmacs-1.99.2 , the build defined "remove_notifier"

$ grep remove_notifier *
Binary file pipe_link.o matches
Binary file qt_gui.o matches
Binary file socket_link.o matches
Binary file socket_notifier.o matches
Binary file socket_server.o matches
Binary file texmacs-shared.bin matches
Karl Hegbloom | 18 Dec 18:29 2015
Picon
Gravatar

Blue box around active environment?

I just noticed that with the build from svn 9906, the cyan box that should appear around the active environment is no longer being displayed. Is it a setting I can enable? What part of the source needs to be patched ot bring it back? It's one of TeXmacs best features and should NOT be removed!

--
_______________________________________________
Texmacs-dev mailing list
Texmacs-dev <at> gnu.org
https://lists.gnu.org/mailman/listinfo/texmacs-dev
Andrey G. Grozin | 18 Dec 03:30 2015
Picon

where are the sources?

In the src/ directory of the ftp server I see only the version 1.99.2. In 
various binary directories there are 1.99.3 and 1.99.4. Where are the 
sources of these newer versions?

I'm the maintainer of the TeXmacs package in Gentoo linux. I need a source 
tarball in order to update this package in Gentoo.

Andrey
Kostas Oikonomou | 2 Dec 20:05 2015
Picon

per section numbering of environments

The package number-long-article, which I use all the time, numbers 
theorems, lemmas, propositions, and definitions
by counters that seem to increment one another, or maybe by the same 
counter.

In standard LaTeX, using \numberwithin{...}{section},  I would have

Section 1

Theorem 1.1
Lemma 1.1
Definition 1.1

But in TeXmacs I get

Section 1

Theorem 1.1
Lemma 1.2
Definition 1.3

Is it possible to make the number-long-article package behave like LaTeX?

                                     Kostas
Alkis Akritas | 21 Oct 21:55 2015
Picon

sage problem with ubuntu 14.04

Dear All,

On Ubuntu 14.04 I cannot start sage from TeXmacs (svn).  I get the following message

python: can't open file '‘which': [Errno 2] No such file or directory

and TeXmacs gets stuck in busy mode.  Any advice??

--
All the best,

Alkis
_______________________________________________
Texmacs-dev mailing list
Texmacs-dev <at> gnu.org
https://lists.gnu.org/mailman/listinfo/texmacs-dev
Balakrishnan H. | 19 Oct 07:49 2015
Picon

class file location

Dear All,

 

I have using TeXmacs 1.99.3 and it’s very helpful for me. I have using svjour3 class file. When importing LaTeX file \institute text is not visible in TeXmacs and also \cite is showing value. In TeXmacs where it is taken class file location? Please find the screenshot for your reference. How do solve this in TeXmacs.

 

Regards,

bala

_______________________________________________
Texmacs-dev mailing list
Texmacs-dev <at> gnu.org
https://lists.gnu.org/mailman/listinfo/texmacs-dev
Stephen Crowley | 9 Sep 21:26 2015

.tm → .tex conversion from the commandline

Hi All,

is there a command to convert texmacs files to latex or pdf, etc from
the commandline?
Orion Poplawski | 11 Aug 00:48 2015
Gravatar

guile 1.8 in Fedora

I see that current svn tries to look for guile18-config.  However, in Fedora
we use guile1.8-config.  Also, there is a direct call to guile18-config in
aclocal.m4 instead of using $GUILE_CONFIG.
Orion Poplawski | 11 Aug 00:22 2015
Gravatar

Fedora patch to config

I just ran into an issue building the Fedora TeXmacs package for rawhide
(test version).  Turns out that TeXmacs' configure will overwrite the passed
in CXXFLAGS, which is bad, so I've fixed that.

We also have been carrying a fix that adds a PDF_LDFLAGS variable and sets
it to -lz.  The combined patch follows:

Index: configure.in
===================================================================
--- configure.in        (revision 9766)
+++ configure.in        (working copy)
 <at>  <at>  -601,6 +601,7  <at>  <at> 
 #--------------------------------------------------------------------

 AC_MSG_CHECKING(whether ... arguments behave correctly)
+ac_save_CXXFLAGS="$CXXFLAGS"
 if test -z "$GUILE_CFLAGS"; then
   CXXFLAGS="`$GUILE_CONFIG compile`"
 else
 <at>  <at>  -619,9 +620,10  <at>  <at> 
 ],[
   AC_MSG_RESULT(no)
 ])
-CXXFLAGS=""
+CXXFLAGS="$ac_save_CXXFLAGS"

 AC_MSG_CHECKING(the size_t of guile strings)
+ac_save_CXXFLAGS="$CXXFLAGS"
 if test -z "$GUILE_CFLAGS"; then
   CXXFLAGS="`$GUILE_CONFIG compile`"
 else
 <at>  <at>  -641,7 +643,7  <at>  <at> 
   AC_DEFINE(guile_str_size_t, size_t, [Guile string size type])
   AC_MSG_RESULT(size_t)
 ])
-CXXFLAGS=""
+CXXFLAGS="$ac_save_CXXFLAGS"

 AC_MSG_CHECKING([if statically linking with guile works])
 SAVE_CPPFLAGS="$CPPFLAGS"
 <at>  <at>  -1005,6 +1007,7  <at>  <at> 
 #        CONFIG_PDF="Pdf Pdf/PDFWriter"
         CONFIG_PDF="Pdf"
        PDF_CFLAGS="-DPDFHUMMUS_NO_TIFF -DPDFHUMMUS_NO_DCT"
+        PDF_LDFLAGS="-lz"
 ],[
         AC_MSG_RESULT(no)
         AC_MSG_ERROR([cannot find FreeType or your version is < 2.4.8.
 <at>  <at>  -1172,6 +1175,7  <at>  <at> 
 AC_SUBST(COCOA_CFLAGS)
 AC_SUBST(COCOA_LDFLAGS)
 AC_SUBST(PDF_CFLAGS)
+AC_SUBST(PDF_LDFLAGS)

 AC_SUBST(CONFIG_X11)
 AC_SUBST(CONFIG_COCOA)
 <at>  <at>  -1198,6 +1202,7  <at>  <at> 
 fi

 AC_MSG_CHECKING(if compiler supports $STD_DEBUG_FLAGS)
+ac_save_CXXFLAGS="$CXXFLAGS"
 CXXFLAGS="$STD_DEBUG_FLAGS"
 AC_TRY_COMPILE([
   int some_variable = 0;
 <at>  <at>  -1209,7 +1214,7  <at>  <at> 
     CONFIG_CXXDIALECT=""
     AC_MSG_RESULT(no)
 ])
-CXXFLAGS=""
+CXXFLAGS="$ac_save_CXXFLAGS"
 AC_SUBST(CONFIG_CXXDIALECT)

 AC_ARG_ENABLE(profile,
Index: src/makefile.in
===================================================================
--- src/makefile.in     (revision 9766)
+++ src/makefile.in     (working copy)
 <at>  <at>  -52,7 +52,7  <at>  <at> 
 LDRT =  <at> CONFIG_LDRT <at> 
 LDSTATIC =  <at> CONFIG_BSTATIC <at> 
 LDSHARED =  <at> CONFIG_BSHARED <at> 
-LDPATH =  <at> CONFIG_BPATH <at> 
+LDPATH =
 LDDL =  <at> CONFIG_BDL <at> 
 LDX11 =  <at> X11_LDFLAGS <at> 
 LDCOCOA =  <at> COCOA_LDFLAGS <at> 
 <at>  <at>  -66,6 +66,7  <at>  <at> 
 LDICONV =  <at> ICONV_LDFLAGS <at> 
 LDGUILE =  <at> GUILE_LDFLAGS <at> 
 LDSPARKLE =  <at> SPARKLE_LDFLAGS <at> 
+LDPDF =  <at> PDF_LDFLAGS <at> 

 AR = ar
 ARFLAGS = -r
 <at>  <at>  -427,7 +428,7  <at>  <at> 

 link_options:=-L$(tmsrc)/lib $(LDRT) -lm $(LDPATH) $(LDGUI) $(LDICONV) \
    $(LDGUILE) $(LDAXEL) $(LDCAIRO) $(LDIMLIB2) $(LDSQLITE3) $(LDFREETYPE) \
-   $(LDDL) $(LDSPARKLE)
+   $(LDDL) $(LDSPARKLE) $(LDPDF)

 $(tmsrc)/bin/texmacs.bin: Objects/texmacs-$(link).bin
        $(CP) $^ $ <at> 

Gmane