You can subscribe to this list here.
2003 |
Jan
(1) |
Feb
(2) |
Mar
(6) |
Apr
(11) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(15) |
Oct
(12) |
Nov
(11) |
Dec
(18) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(57) |
Feb
(16) |
Mar
(3) |
Apr
(14) |
May
(35) |
Jun
(41) |
Jul
(19) |
Aug
(25) |
Sep
(14) |
Oct
(36) |
Nov
(41) |
Dec
(29) |
2005 |
Jan
(44) |
Feb
(21) |
Mar
(17) |
Apr
(45) |
May
(23) |
Jun
(26) |
Jul
(30) |
Aug
(9) |
Sep
(120) |
Oct
(34) |
Nov
(17) |
Dec
(6) |
2006 |
Jan
(23) |
Feb
(56) |
Mar
(78) |
Apr
(14) |
May
(87) |
Jun
(52) |
Jul
(69) |
Aug
(41) |
Sep
(53) |
Oct
(37) |
Nov
(8) |
Dec
(17) |
2007 |
Jan
(32) |
Feb
(3) |
Mar
(21) |
Apr
(29) |
May
(14) |
Jun
(9) |
Jul
(30) |
Aug
(26) |
Sep
(6) |
Oct
(9) |
Nov
(7) |
Dec
(6) |
2008 |
Jan
(9) |
Feb
(19) |
Mar
(46) |
Apr
(44) |
May
(28) |
Jun
(32) |
Jul
(37) |
Aug
(14) |
Sep
(7) |
Oct
(3) |
Nov
(15) |
Dec
(3) |
2009 |
Jan
|
Feb
(6) |
Mar
(7) |
Apr
|
May
(20) |
Jun
(8) |
Jul
(5) |
Aug
(6) |
Sep
|
Oct
(45) |
Nov
(8) |
Dec
(20) |
2010 |
Jan
(3) |
Feb
(1) |
Mar
(12) |
Apr
|
May
(3) |
Jun
(12) |
Jul
(1) |
Aug
(2) |
Sep
(3) |
Oct
(11) |
Nov
(5) |
Dec
(6) |
2011 |
Jan
(4) |
Feb
|
Mar
|
Apr
(13) |
May
(9) |
Jun
(12) |
Jul
(12) |
Aug
(2) |
Sep
(11) |
Oct
(8) |
Nov
(2) |
Dec
(16) |
2012 |
Jan
(23) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
(6) |
Oct
(7) |
Nov
|
Dec
(3) |
2013 |
Jan
(1) |
Feb
|
Mar
|
Apr
(2) |
May
(7) |
Jun
(6) |
Jul
(2) |
Aug
(12) |
Sep
|
Oct
(3) |
Nov
|
Dec
(3) |
2014 |
Jan
|
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(3) |
Dec
|
2015 |
Jan
|
Feb
(5) |
Mar
(5) |
Apr
(1) |
May
(7) |
Jun
(28) |
Jul
(9) |
Aug
|
Sep
|
Oct
(2) |
Nov
(3) |
Dec
(10) |
2016 |
Jan
(16) |
Feb
(6) |
Mar
|
Apr
|
May
(9) |
Jun
(5) |
Jul
(6) |
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
(5) |
Mar
(3) |
Apr
(4) |
May
(7) |
Jun
|
Jul
(1) |
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2018 |
Jan
|
Feb
(5) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
(6) |
Jul
(5) |
Aug
(8) |
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
(1) |
Feb
(5) |
Mar
(3) |
Apr
|
May
(9) |
Jun
(4) |
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2021 |
Jan
|
Feb
(1) |
Mar
(2) |
Apr
|
May
|
Jun
(5) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2023 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: S J. S. <swa...@gm...> - 2019-06-13 14:13:00
|
Hello, I've been getting very good use out of PyX. I want to know how to do a gradient fill and a gradient line, where the color along a path shifts from one color to another, hopefully in a customizable way. S Joshua Swamidass |
From: Simon B. <si...@ar...> - 2019-06-12 14:37:20
|
Hi, Finding the bbox of a canvas doesn't seem to work. For example: c = canvas.canvas() c.stroke(path.line(0, 0, 1, 1)) c.stroke(path.line(1, 1, 0, 0)) b = pyx.bbox.empty() for item in c.items: b1 = item.bbox() b += b1 print(b) The final bbox is empty. Oh! It's not actually empty, but it is still an instance of the bbox.empty class. Surely this should be a function, not a class ? Or otherwise bbox.__iadd__ should just call __add__. thanks, Simon. |
From: S J. S. <swa...@gm...> - 2019-06-04 15:31:06
|
I've been using Pyx and find it to be a really well designed interface for pgf/tikz. Development, however, seems to have slowed down. Is there a way to pass raw Tikz/pgf commands through to access features that are not yet covered here? Or is there a guide for extending PyX? Or are feature requests still handled? Thanks. S Joshua Swamidass http://swami.wustl.edu/ |
From: Alan I. <ala...@gm...> - 2019-03-31 17:26:55
|
I've been away from PyX for a bit, and I now find (version 0.14.1) that generating some of my images produced the following warning: "mode setting is deprecated, use the cls argument instead" It would be nice if this warning said it was coming from PyX and even nicer if it pointed to a manual section for transition. The only mention I can find in the manual is in section 8.3, and it involves `text.set`. So I changed pyx.text.set(mode='latex') to pyx.text.set(cls=pyx.text.LatexRunner) The warning is gone; was that a complete response to the issue? Separately, it seems that calling `doaxes` after a fill to the axes location no longer ensures that the axes are drawn on top of the last bit of fill, which is a problem. Did something change? Is there a fix? Finally, am I correct that 0.15 was never released? It seemed on the brink... Thanks for PyX! Alan Isaac |
From: Michael J G. <mic...@us...> - 2018-03-21 09:58:33
|
Hi José when you use the LaTeX runner with pyxgraphics=True (which is the default) PyX constructs a tmp file that it feeds to LaTeX (see text.py). This is the only place that I can think of where PyX can get into trouble with special characters in your path. One workaround is to set "tmpdir" in the "text" section of your pyxrc to a path without any special characters. That way, you can leave your home directory fully accented ;) Cheers Michael |
From: José M. M. <jos...@gm...> - 2018-02-17 17:42:59
|
In deed the problem was that the username has an accent. I made a new username without it and everything worked. thanks, Jose On Mon, Feb 5, 2018 at 11:16 AM, José María Miotto <jos...@gm...> wrote: > well, it is only a guess that the character is not well-read, and I guess > it should happen as well if I import other packages, but amsmath, for > example, is imported with no problem. > > On Mon, Feb 5, 2018 at 3:04 PM, José María Miotto <jos...@gm...> > wrote: > >> Hi, thanks for running the code. >> >> The color package is correctly installed, I think, since I can compile >> colored text in latex outside pyx. >> I printed the full error, which I report below. It seems that at the end >> pyx does not find the pyx.def. I searched it in the HD and I found the file >> in the correct folder; however, I think I found the problem, my username >> has an accent, and clearly tex interprets that utf8 character wrong: >> ! LaTeX Error: File `*C:/Users/JOS\unhbox\voidb@x \penalty \@M \ >> {}1/AppData/Loc* >> * al/Temp/pyxeg9r80wk/pyx.def*' not found. >> >> Now, is strange that this happens when latex is run by pyx, but not >> normally when compiling a document. >> >> best, >> Jose >> >> >> The expression passed to TeX was: >> \usepackage{color}% >> \PyXInput{4}% >> The return message from TeX was: >> * >> *(c:/texlive/2017/texmf-dist/tex/latex/graphics/color.sty >> (c:/texlive/2017/texmf-dist/tex/latex/graphics-cfg/color.cfg) >> ! Missing \endcsname inserted. >> <to be read again> >> \protect >> l.148 \@ifundefined{ver@\Gin@driver} >> {\input{\Gin@driver}}{} >> >> ! LaTeX Error: Missing \begin{document}. >> >> See the LaTeX manual or LaTeX Companion for explanation. >> Type H <return> for immediate help. >> ... >> >> l.148 \@ifundefined{ver@\Gin@driver} >> {\input{\Gin@driver}}{} >> ! Extra \endcsname. >> \@ifundefined ...dafter \ifx \csname #1\endcsname >> \relax \expandafter >> \@firs... >> l.148 \@ifundefined{ver@\Gin@driver} >> {\input{\Gin@driver}}{} >> >> ! LaTeX Error: File ` >> *C:/Users/JOS\unhbox\voidb@x \penalty \@M \ {}1/AppData/Loc >> al/Temp/pyxeg9r80wk/pyx.def*' not found. >> >> Type X to quit or <RETURN> to proceed, >> or enter new name. (Default extension: def) >> After parsing the return message from TeX, the following was left: >> * >> *(c:/texlive/2017/texmf-dist/tex/latex/graphics/color.sty >> (c:/texlive/2017/texmf-dist/tex/latex/graphics-cfg/color.cfg) >> ! Missing \endcsname inserted. >> <to be read again> >> \protect >> l.148 \@ifundefined{ver@\Gin@driver} >> {\input{\Gin@driver}}{} >> >> ! LaTeX Error: Missing \begin{document}. >> >> See the LaTeX manual or LaTeX Companion for explanation. >> Type H <return> for immediate help. >> ... >> >> l.148 \@ifundefined{ver@\Gin@driver} >> {\input{\Gin@driver}}{} >> ! Extra \endcsname. >> \@ifundefined ...dafter \ifx \csname #1\endcsname >> \relax \expandafter >> \@firs... >> l.148 \@ifundefined{ver@\Gin@driver} >> {\input{\Gin@driver}}{} >> >> ! LaTeX Error: File ` >> *C:/Users/JOS\unhbox\voidb@x \penalty \@M \ {}1/AppData/Loc >> al/Temp/pyxeg9r80wk/pyx.def*' not found. >> >> On Mon, Feb 5, 2018 at 12:54 PM, Michael Hartmann < >> mi...@sp...> wrote: >> >>> Dear Jose, >>> >>> I tried your code on my machine (Linux) and it works as expected. Maybe >>> you >>> have a problem with your LaTeX-Installation? What is in the file >>> errordetail.full? Is the package color installed correctly? >>> >>> --Michael >>> >>> Am 05.02.2018 um 12:50 schrieb José María Miotto: >>> > Hi, I'm having problems with text in color. I solved this issue years >>> ago >>> > on my old machine, but now I bought a new laptop, and I installed >>> > everything from scratch (windows os, texlive, anaconda, pyx), and I >>> don't >>> > have a clue of how I solved it before. >>> > >>> > Basically, the code is this >>> > >>> > from pyx import * >>> > text.set(text.LatexRunner) >>> > text.preamble(r'\usepackage{color}') >>> > >>> > c = canvas.canvas() >>> > a = '\\textcolor[rgb]{1,0,0}{x}' >>> > c.text(0, 0, a) >>> > c.writePDFfile('./plots/test') >>> > >>> > and this code fails, although is very similar to the example in the >>> > documentation. The full output is this: >>> > >>> > >>> > Still waiting for LaTeX after 5 (of 60) seconds... >>> > Still waiting for LaTeX after 10 (of 60) seconds... >>> > Still waiting for LaTeX after 15 (of 60) seconds... >>> > Still waiting for LaTeX after 20 (of 60) seconds... >>> > Still waiting for LaTeX after 25 (of 60) seconds... >>> > Still waiting for LaTeX after 30 (of 60) seconds... >>> > Still waiting for LaTeX after 35 (of 60) seconds... >>> > Still waiting for LaTeX after 40 (of 60) seconds... >>> > Still waiting for LaTeX after 45 (of 60) seconds... >>> > Still waiting for LaTeX after 50 (of 60) seconds... >>> > Still waiting for LaTeX after 55 (of 60) seconds... >>> > The timeout of 60 seconds expired and LaTeX did not respond. >>> > Traceback (most recent call last): >>> > File "C:\Program Files\JetBrains\PyCharm >>> > 2017.3.3\helpers\pydev\pydev_run_in_console.py", >>> > line 53, in run_file >>> > pydev_imports.execfile(file, globals, locals) # execute the script >>> > File "C:\Program Files\JetBrains\PyCharm >>> > 2017.3.3\helpers\pydev\_pydev_imps\_pydev_execfile.py", >>> > line 18, in execfile >>> > exec(compile(contents+"\n", file, 'exec'), glob, loc) >>> > File "C:/Users/José/PycharmProjects/anomalies/test.py", line 3, in >>> > <module> >>> > text.preamble(r'\usepackage{color}') >>> > File "C:\ProgramData\Anaconda3\lib\site-packages\pyx\text.py", line >>> 1454, >>> > in preamble >>> > self.instance.preamble(expr, texmessages) >>> > File "C:\ProgramData\Anaconda3\lib\site-packages\pyx\text.py", line >>> 1245, >>> > in preamble >>> > self.do_preamble(expr, texmessages) >>> > File "C:\ProgramData\Anaconda3\lib\site-packages\pyx\text.py", line >>> 1196, >>> > in do_preamble >>> > self._execute(expr, texmessages, STATE_PREAMBLE, STATE_PREAMBLE) >>> > File "C:\ProgramData\Anaconda3\lib\site-packages\pyx\text.py", line >>> 1125, >>> > in _execute >>> > raise e >>> > File "C:\ProgramData\Anaconda3\lib\site-packages\pyx\text.py", line >>> 1083, >>> > in _execute >>> > raise TexResultError("TeX didn't respond as expected within the >>> timeout >>> > period.") >>> > pyx.text.TexResultError: TeX didn't respond as expected within the >>> timeout >>> > period. >>> > The expression passed to TeX was: >>> > \usepackage{color}% >>> > \PyXInput{4}% >>> > After parsing the return message from TeX, the following was left: >>> > * >>> > *(c:/texlive/2017/texmf-dist/tex/latex/graphics/color.sty >>> > (c:/texlive/2017/texmf-dist/tex/latex/graphics-cfg/color.cfg) >>> > ! Missing \endcsname inserted. >>> > <to be read again> >>> > (cut after 5 lines; use errordetail.full for all output) >>> > >>> > >>> > I tried the other option for the preamble that is mentioned in the >>> > documentation, >>> > >>> > from pyx import * >>> > text.set(text.LatexRunner, pyxgraphics=0) >>> > text.preamble(r'\usepackage[pyx]{color}') >>> > >>> > c = canvas.canvas() >>> > a = '\\textcolor[rgb]{1,0,0}{x}' >>> > c.text(0, 0, a) >>> > c.writePDFfile('./plots/test') >>> > >>> > >>> > which also fails, probably because I did not copy the mentioned files >>> in >>> > the respective paths, which is something I would like to avoid. The >>> full >>> > output is >>> > >>> > ignoring special 'color push rgb 1 0 0' >>> > ignoring special 'color pop' >>> > >>> > and it actually prints a pdf, but with no color, just in black >>> (because is >>> > ignoring the tex color statements). >>> > >>> > What is the solution for this problem? To be honest I don't even >>> understand >>> > what the problem is. >>> > >>> > thanks a lot, >>> > Jose Miotto >>> > >>> > >>> > >>> > ------------------------------------------------------------ >>> ------------------ >>> > Check out the vibrant tech community on one of the world's most >>> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot >>> > >>> > >>> > >>> > _______________________________________________ >>> > PyX-user mailing list >>> > PyX...@li... >>> > https://lists.sourceforge.net/lists/listinfo/pyx-user >>> > >>> >>> ------------------------------------------------------------ >>> ------------------ >>> Check out the vibrant tech community on one of the world's most >>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >>> _______________________________________________ >>> PyX-user mailing list >>> PyX...@li... >>> https://lists.sourceforge.net/lists/listinfo/pyx-user >>> >> >> > |
From: José M. M. <jos...@gm...> - 2018-02-05 14:16:39
|
well, it is only a guess that the character is not well-read, and I guess it should happen as well if I import other packages, but amsmath, for example, is imported with no problem. On Mon, Feb 5, 2018 at 3:04 PM, José María Miotto <jos...@gm...> wrote: > Hi, thanks for running the code. > > The color package is correctly installed, I think, since I can compile > colored text in latex outside pyx. > I printed the full error, which I report below. It seems that at the end > pyx does not find the pyx.def. I searched it in the HD and I found the file > in the correct folder; however, I think I found the problem, my username > has an accent, and clearly tex interprets that utf8 character wrong: > ! LaTeX Error: File `*C:/Users/JOS\unhbox\voidb@x \penalty \@M \ > {}1/AppData/Loc* > * al/Temp/pyxeg9r80wk/pyx.def*' not found. > > Now, is strange that this happens when latex is run by pyx, but not > normally when compiling a document. > > best, > Jose > > > The expression passed to TeX was: > \usepackage{color}% > \PyXInput{4}% > The return message from TeX was: > * > *(c:/texlive/2017/texmf-dist/tex/latex/graphics/color.sty > (c:/texlive/2017/texmf-dist/tex/latex/graphics-cfg/color.cfg) > ! Missing \endcsname inserted. > <to be read again> > \protect > l.148 \@ifundefined{ver@\Gin@driver} > {\input{\Gin@driver}}{} > > ! LaTeX Error: Missing \begin{document}. > > See the LaTeX manual or LaTeX Companion for explanation. > Type H <return> for immediate help. > ... > > l.148 \@ifundefined{ver@\Gin@driver} > {\input{\Gin@driver}}{} > ! Extra \endcsname. > \@ifundefined ...dafter \ifx \csname #1\endcsname > \relax \expandafter > \@firs... > l.148 \@ifundefined{ver@\Gin@driver} > {\input{\Gin@driver}}{} > > ! LaTeX Error: File ` > *C:/Users/JOS\unhbox\voidb@x \penalty \@M \ {}1/AppData/Loc > al/Temp/pyxeg9r80wk/pyx.def*' not found. > > Type X to quit or <RETURN> to proceed, > or enter new name. (Default extension: def) > After parsing the return message from TeX, the following was left: > * > *(c:/texlive/2017/texmf-dist/tex/latex/graphics/color.sty > (c:/texlive/2017/texmf-dist/tex/latex/graphics-cfg/color.cfg) > ! Missing \endcsname inserted. > <to be read again> > \protect > l.148 \@ifundefined{ver@\Gin@driver} > {\input{\Gin@driver}}{} > > ! LaTeX Error: Missing \begin{document}. > > See the LaTeX manual or LaTeX Companion for explanation. > Type H <return> for immediate help. > ... > > l.148 \@ifundefined{ver@\Gin@driver} > {\input{\Gin@driver}}{} > ! Extra \endcsname. > \@ifundefined ...dafter \ifx \csname #1\endcsname > \relax \expandafter > \@firs... > l.148 \@ifundefined{ver@\Gin@driver} > {\input{\Gin@driver}}{} > > ! LaTeX Error: File ` > *C:/Users/JOS\unhbox\voidb@x \penalty \@M \ {}1/AppData/Loc > al/Temp/pyxeg9r80wk/pyx.def*' not found. > > On Mon, Feb 5, 2018 at 12:54 PM, Michael Hartmann <mi...@sp... > > wrote: > >> Dear Jose, >> >> I tried your code on my machine (Linux) and it works as expected. Maybe >> you >> have a problem with your LaTeX-Installation? What is in the file >> errordetail.full? Is the package color installed correctly? >> >> --Michael >> >> Am 05.02.2018 um 12:50 schrieb José María Miotto: >> > Hi, I'm having problems with text in color. I solved this issue years >> ago >> > on my old machine, but now I bought a new laptop, and I installed >> > everything from scratch (windows os, texlive, anaconda, pyx), and I >> don't >> > have a clue of how I solved it before. >> > >> > Basically, the code is this >> > >> > from pyx import * >> > text.set(text.LatexRunner) >> > text.preamble(r'\usepackage{color}') >> > >> > c = canvas.canvas() >> > a = '\\textcolor[rgb]{1,0,0}{x}' >> > c.text(0, 0, a) >> > c.writePDFfile('./plots/test') >> > >> > and this code fails, although is very similar to the example in the >> > documentation. The full output is this: >> > >> > >> > Still waiting for LaTeX after 5 (of 60) seconds... >> > Still waiting for LaTeX after 10 (of 60) seconds... >> > Still waiting for LaTeX after 15 (of 60) seconds... >> > Still waiting for LaTeX after 20 (of 60) seconds... >> > Still waiting for LaTeX after 25 (of 60) seconds... >> > Still waiting for LaTeX after 30 (of 60) seconds... >> > Still waiting for LaTeX after 35 (of 60) seconds... >> > Still waiting for LaTeX after 40 (of 60) seconds... >> > Still waiting for LaTeX after 45 (of 60) seconds... >> > Still waiting for LaTeX after 50 (of 60) seconds... >> > Still waiting for LaTeX after 55 (of 60) seconds... >> > The timeout of 60 seconds expired and LaTeX did not respond. >> > Traceback (most recent call last): >> > File "C:\Program Files\JetBrains\PyCharm >> > 2017.3.3\helpers\pydev\pydev_run_in_console.py", >> > line 53, in run_file >> > pydev_imports.execfile(file, globals, locals) # execute the script >> > File "C:\Program Files\JetBrains\PyCharm >> > 2017.3.3\helpers\pydev\_pydev_imps\_pydev_execfile.py", >> > line 18, in execfile >> > exec(compile(contents+"\n", file, 'exec'), glob, loc) >> > File "C:/Users/José/PycharmProjects/anomalies/test.py", line 3, in >> > <module> >> > text.preamble(r'\usepackage{color}') >> > File "C:\ProgramData\Anaconda3\lib\site-packages\pyx\text.py", line >> 1454, >> > in preamble >> > self.instance.preamble(expr, texmessages) >> > File "C:\ProgramData\Anaconda3\lib\site-packages\pyx\text.py", line >> 1245, >> > in preamble >> > self.do_preamble(expr, texmessages) >> > File "C:\ProgramData\Anaconda3\lib\site-packages\pyx\text.py", line >> 1196, >> > in do_preamble >> > self._execute(expr, texmessages, STATE_PREAMBLE, STATE_PREAMBLE) >> > File "C:\ProgramData\Anaconda3\lib\site-packages\pyx\text.py", line >> 1125, >> > in _execute >> > raise e >> > File "C:\ProgramData\Anaconda3\lib\site-packages\pyx\text.py", line >> 1083, >> > in _execute >> > raise TexResultError("TeX didn't respond as expected within the >> timeout >> > period.") >> > pyx.text.TexResultError: TeX didn't respond as expected within the >> timeout >> > period. >> > The expression passed to TeX was: >> > \usepackage{color}% >> > \PyXInput{4}% >> > After parsing the return message from TeX, the following was left: >> > * >> > *(c:/texlive/2017/texmf-dist/tex/latex/graphics/color.sty >> > (c:/texlive/2017/texmf-dist/tex/latex/graphics-cfg/color.cfg) >> > ! Missing \endcsname inserted. >> > <to be read again> >> > (cut after 5 lines; use errordetail.full for all output) >> > >> > >> > I tried the other option for the preamble that is mentioned in the >> > documentation, >> > >> > from pyx import * >> > text.set(text.LatexRunner, pyxgraphics=0) >> > text.preamble(r'\usepackage[pyx]{color}') >> > >> > c = canvas.canvas() >> > a = '\\textcolor[rgb]{1,0,0}{x}' >> > c.text(0, 0, a) >> > c.writePDFfile('./plots/test') >> > >> > >> > which also fails, probably because I did not copy the mentioned files in >> > the respective paths, which is something I would like to avoid. The full >> > output is >> > >> > ignoring special 'color push rgb 1 0 0' >> > ignoring special 'color pop' >> > >> > and it actually prints a pdf, but with no color, just in black (because >> is >> > ignoring the tex color statements). >> > >> > What is the solution for this problem? To be honest I don't even >> understand >> > what the problem is. >> > >> > thanks a lot, >> > Jose Miotto >> > >> > >> > >> > ------------------------------------------------------------ >> ------------------ >> > Check out the vibrant tech community on one of the world's most >> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> > >> > >> > >> > _______________________________________________ >> > PyX-user mailing list >> > PyX...@li... >> > https://lists.sourceforge.net/lists/listinfo/pyx-user >> > >> >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> PyX-user mailing list >> PyX...@li... >> https://lists.sourceforge.net/lists/listinfo/pyx-user >> > > |
From: José M. M. <jos...@gm...> - 2018-02-05 14:04:48
|
Hi, thanks for running the code. The color package is correctly installed, I think, since I can compile colored text in latex outside pyx. I printed the full error, which I report below. It seems that at the end pyx does not find the pyx.def. I searched it in the HD and I found the file in the correct folder; however, I think I found the problem, my username has an accent, and clearly tex interprets that utf8 character wrong: ! LaTeX Error: File `*C:/Users/JOS\unhbox\voidb@x \penalty \@M \ {}1/AppData/Loc* * al/Temp/pyxeg9r80wk/pyx.def*' not found. Now, is strange that this happens when latex is run by pyx, but not normally when compiling a document. best, Jose The expression passed to TeX was: \usepackage{color}% \PyXInput{4}% The return message from TeX was: * *(c:/texlive/2017/texmf-dist/tex/latex/graphics/color.sty (c:/texlive/2017/texmf-dist/tex/latex/graphics-cfg/color.cfg) ! Missing \endcsname inserted. <to be read again> \protect l.148 \@ifundefined{ver@\Gin@driver} {\input{\Gin@driver}}{} ! LaTeX Error: Missing \begin{document}. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... l.148 \@ifundefined{ver@\Gin@driver} {\input{\Gin@driver}}{} ! Extra \endcsname. \@ifundefined ...dafter \ifx \csname #1\endcsname \relax \expandafter \@firs... l.148 \@ifundefined{ver@\Gin@driver} {\input{\Gin@driver}}{} ! LaTeX Error: File ` *C:/Users/JOS\unhbox\voidb@x \penalty \@M \ {}1/AppData/Loc al/Temp/pyxeg9r80wk/pyx.def*' not found. Type X to quit or <RETURN> to proceed, or enter new name. (Default extension: def) After parsing the return message from TeX, the following was left: * *(c:/texlive/2017/texmf-dist/tex/latex/graphics/color.sty (c:/texlive/2017/texmf-dist/tex/latex/graphics-cfg/color.cfg) ! Missing \endcsname inserted. <to be read again> \protect l.148 \@ifundefined{ver@\Gin@driver} {\input{\Gin@driver}}{} ! LaTeX Error: Missing \begin{document}. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... l.148 \@ifundefined{ver@\Gin@driver} {\input{\Gin@driver}}{} ! Extra \endcsname. \@ifundefined ...dafter \ifx \csname #1\endcsname \relax \expandafter \@firs... l.148 \@ifundefined{ver@\Gin@driver} {\input{\Gin@driver}}{} ! LaTeX Error: File ` *C:/Users/JOS\unhbox\voidb@x \penalty \@M \ {}1/AppData/Loc al/Temp/pyxeg9r80wk/pyx.def*' not found. On Mon, Feb 5, 2018 at 12:54 PM, Michael Hartmann <mi...@sp...> wrote: > Dear Jose, > > I tried your code on my machine (Linux) and it works as expected. Maybe you > have a problem with your LaTeX-Installation? What is in the file > errordetail.full? Is the package color installed correctly? > > --Michael > > Am 05.02.2018 um 12:50 schrieb José María Miotto: > > Hi, I'm having problems with text in color. I solved this issue years > ago > > on my old machine, but now I bought a new laptop, and I installed > > everything from scratch (windows os, texlive, anaconda, pyx), and I don't > > have a clue of how I solved it before. > > > > Basically, the code is this > > > > from pyx import * > > text.set(text.LatexRunner) > > text.preamble(r'\usepackage{color}') > > > > c = canvas.canvas() > > a = '\\textcolor[rgb]{1,0,0}{x}' > > c.text(0, 0, a) > > c.writePDFfile('./plots/test') > > > > and this code fails, although is very similar to the example in the > > documentation. The full output is this: > > > > > > Still waiting for LaTeX after 5 (of 60) seconds... > > Still waiting for LaTeX after 10 (of 60) seconds... > > Still waiting for LaTeX after 15 (of 60) seconds... > > Still waiting for LaTeX after 20 (of 60) seconds... > > Still waiting for LaTeX after 25 (of 60) seconds... > > Still waiting for LaTeX after 30 (of 60) seconds... > > Still waiting for LaTeX after 35 (of 60) seconds... > > Still waiting for LaTeX after 40 (of 60) seconds... > > Still waiting for LaTeX after 45 (of 60) seconds... > > Still waiting for LaTeX after 50 (of 60) seconds... > > Still waiting for LaTeX after 55 (of 60) seconds... > > The timeout of 60 seconds expired and LaTeX did not respond. > > Traceback (most recent call last): > > File "C:\Program Files\JetBrains\PyCharm > > 2017.3.3\helpers\pydev\pydev_run_in_console.py", > > line 53, in run_file > > pydev_imports.execfile(file, globals, locals) # execute the script > > File "C:\Program Files\JetBrains\PyCharm > > 2017.3.3\helpers\pydev\_pydev_imps\_pydev_execfile.py", > > line 18, in execfile > > exec(compile(contents+"\n", file, 'exec'), glob, loc) > > File "C:/Users/José/PycharmProjects/anomalies/test.py", line 3, in > > <module> > > text.preamble(r'\usepackage{color}') > > File "C:\ProgramData\Anaconda3\lib\site-packages\pyx\text.py", line > 1454, > > in preamble > > self.instance.preamble(expr, texmessages) > > File "C:\ProgramData\Anaconda3\lib\site-packages\pyx\text.py", line > 1245, > > in preamble > > self.do_preamble(expr, texmessages) > > File "C:\ProgramData\Anaconda3\lib\site-packages\pyx\text.py", line > 1196, > > in do_preamble > > self._execute(expr, texmessages, STATE_PREAMBLE, STATE_PREAMBLE) > > File "C:\ProgramData\Anaconda3\lib\site-packages\pyx\text.py", line > 1125, > > in _execute > > raise e > > File "C:\ProgramData\Anaconda3\lib\site-packages\pyx\text.py", line > 1083, > > in _execute > > raise TexResultError("TeX didn't respond as expected within the > timeout > > period.") > > pyx.text.TexResultError: TeX didn't respond as expected within the > timeout > > period. > > The expression passed to TeX was: > > \usepackage{color}% > > \PyXInput{4}% > > After parsing the return message from TeX, the following was left: > > * > > *(c:/texlive/2017/texmf-dist/tex/latex/graphics/color.sty > > (c:/texlive/2017/texmf-dist/tex/latex/graphics-cfg/color.cfg) > > ! Missing \endcsname inserted. > > <to be read again> > > (cut after 5 lines; use errordetail.full for all output) > > > > > > I tried the other option for the preamble that is mentioned in the > > documentation, > > > > from pyx import * > > text.set(text.LatexRunner, pyxgraphics=0) > > text.preamble(r'\usepackage[pyx]{color}') > > > > c = canvas.canvas() > > a = '\\textcolor[rgb]{1,0,0}{x}' > > c.text(0, 0, a) > > c.writePDFfile('./plots/test') > > > > > > which also fails, probably because I did not copy the mentioned files in > > the respective paths, which is something I would like to avoid. The full > > output is > > > > ignoring special 'color push rgb 1 0 0' > > ignoring special 'color pop' > > > > and it actually prints a pdf, but with no color, just in black (because > is > > ignoring the tex color statements). > > > > What is the solution for this problem? To be honest I don't even > understand > > what the problem is. > > > > thanks a lot, > > Jose Miotto > > > > > > > > ------------------------------------------------------------ > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > > > > > > _______________________________________________ > > PyX-user mailing list > > PyX...@li... > > https://lists.sourceforge.net/lists/listinfo/pyx-user > > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > PyX-user mailing list > PyX...@li... > https://lists.sourceforge.net/lists/listinfo/pyx-user > |
From: Michael H. <mi...@sp...> - 2018-02-05 12:09:44
|
Dear Jose, I tried your code on my machine (Linux) and it works as expected. Maybe you have a problem with your LaTeX-Installation? What is in the file errordetail.full? Is the package color installed correctly? --Michael Am 05.02.2018 um 12:50 schrieb José María Miotto: > Hi, I'm having problems with text in color. I solved this issue years ago > on my old machine, but now I bought a new laptop, and I installed > everything from scratch (windows os, texlive, anaconda, pyx), and I don't > have a clue of how I solved it before. > > Basically, the code is this > > from pyx import * > text.set(text.LatexRunner) > text.preamble(r'\usepackage{color}') > > c = canvas.canvas() > a = '\\textcolor[rgb]{1,0,0}{x}' > c.text(0, 0, a) > c.writePDFfile('./plots/test') > > and this code fails, although is very similar to the example in the > documentation. The full output is this: > > > Still waiting for LaTeX after 5 (of 60) seconds... > Still waiting for LaTeX after 10 (of 60) seconds... > Still waiting for LaTeX after 15 (of 60) seconds... > Still waiting for LaTeX after 20 (of 60) seconds... > Still waiting for LaTeX after 25 (of 60) seconds... > Still waiting for LaTeX after 30 (of 60) seconds... > Still waiting for LaTeX after 35 (of 60) seconds... > Still waiting for LaTeX after 40 (of 60) seconds... > Still waiting for LaTeX after 45 (of 60) seconds... > Still waiting for LaTeX after 50 (of 60) seconds... > Still waiting for LaTeX after 55 (of 60) seconds... > The timeout of 60 seconds expired and LaTeX did not respond. > Traceback (most recent call last): > File "C:\Program Files\JetBrains\PyCharm > 2017.3.3\helpers\pydev\pydev_run_in_console.py", > line 53, in run_file > pydev_imports.execfile(file, globals, locals) # execute the script > File "C:\Program Files\JetBrains\PyCharm > 2017.3.3\helpers\pydev\_pydev_imps\_pydev_execfile.py", > line 18, in execfile > exec(compile(contents+"\n", file, 'exec'), glob, loc) > File "C:/Users/José/PycharmProjects/anomalies/test.py", line 3, in > <module> > text.preamble(r'\usepackage{color}') > File "C:\ProgramData\Anaconda3\lib\site-packages\pyx\text.py", line 1454, > in preamble > self.instance.preamble(expr, texmessages) > File "C:\ProgramData\Anaconda3\lib\site-packages\pyx\text.py", line 1245, > in preamble > self.do_preamble(expr, texmessages) > File "C:\ProgramData\Anaconda3\lib\site-packages\pyx\text.py", line 1196, > in do_preamble > self._execute(expr, texmessages, STATE_PREAMBLE, STATE_PREAMBLE) > File "C:\ProgramData\Anaconda3\lib\site-packages\pyx\text.py", line 1125, > in _execute > raise e > File "C:\ProgramData\Anaconda3\lib\site-packages\pyx\text.py", line 1083, > in _execute > raise TexResultError("TeX didn't respond as expected within the timeout > period.") > pyx.text.TexResultError: TeX didn't respond as expected within the timeout > period. > The expression passed to TeX was: > \usepackage{color}% > \PyXInput{4}% > After parsing the return message from TeX, the following was left: > * > *(c:/texlive/2017/texmf-dist/tex/latex/graphics/color.sty > (c:/texlive/2017/texmf-dist/tex/latex/graphics-cfg/color.cfg) > ! Missing \endcsname inserted. > <to be read again> > (cut after 5 lines; use errordetail.full for all output) > > > I tried the other option for the preamble that is mentioned in the > documentation, > > from pyx import * > text.set(text.LatexRunner, pyxgraphics=0) > text.preamble(r'\usepackage[pyx]{color}') > > c = canvas.canvas() > a = '\\textcolor[rgb]{1,0,0}{x}' > c.text(0, 0, a) > c.writePDFfile('./plots/test') > > > which also fails, probably because I did not copy the mentioned files in > the respective paths, which is something I would like to avoid. The full > output is > > ignoring special 'color push rgb 1 0 0' > ignoring special 'color pop' > > and it actually prints a pdf, but with no color, just in black (because is > ignoring the tex color statements). > > What is the solution for this problem? To be honest I don't even understand > what the problem is. > > thanks a lot, > Jose Miotto > > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > > _______________________________________________ > PyX-user mailing list > PyX...@li... > https://lists.sourceforge.net/lists/listinfo/pyx-user > |
From: José M. M. <jos...@gm...> - 2018-02-05 11:50:53
|
Hi, I'm having problems with text in color. I solved this issue years ago on my old machine, but now I bought a new laptop, and I installed everything from scratch (windows os, texlive, anaconda, pyx), and I don't have a clue of how I solved it before. Basically, the code is this from pyx import * text.set(text.LatexRunner) text.preamble(r'\usepackage{color}') c = canvas.canvas() a = '\\textcolor[rgb]{1,0,0}{x}' c.text(0, 0, a) c.writePDFfile('./plots/test') and this code fails, although is very similar to the example in the documentation. The full output is this: Still waiting for LaTeX after 5 (of 60) seconds... Still waiting for LaTeX after 10 (of 60) seconds... Still waiting for LaTeX after 15 (of 60) seconds... Still waiting for LaTeX after 20 (of 60) seconds... Still waiting for LaTeX after 25 (of 60) seconds... Still waiting for LaTeX after 30 (of 60) seconds... Still waiting for LaTeX after 35 (of 60) seconds... Still waiting for LaTeX after 40 (of 60) seconds... Still waiting for LaTeX after 45 (of 60) seconds... Still waiting for LaTeX after 50 (of 60) seconds... Still waiting for LaTeX after 55 (of 60) seconds... The timeout of 60 seconds expired and LaTeX did not respond. Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm 2017.3.3\helpers\pydev\pydev_run_in_console.py", line 53, in run_file pydev_imports.execfile(file, globals, locals) # execute the script File "C:\Program Files\JetBrains\PyCharm 2017.3.3\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile exec(compile(contents+"\n", file, 'exec'), glob, loc) File "C:/Users/José/PycharmProjects/anomalies/test.py", line 3, in <module> text.preamble(r'\usepackage{color}') File "C:\ProgramData\Anaconda3\lib\site-packages\pyx\text.py", line 1454, in preamble self.instance.preamble(expr, texmessages) File "C:\ProgramData\Anaconda3\lib\site-packages\pyx\text.py", line 1245, in preamble self.do_preamble(expr, texmessages) File "C:\ProgramData\Anaconda3\lib\site-packages\pyx\text.py", line 1196, in do_preamble self._execute(expr, texmessages, STATE_PREAMBLE, STATE_PREAMBLE) File "C:\ProgramData\Anaconda3\lib\site-packages\pyx\text.py", line 1125, in _execute raise e File "C:\ProgramData\Anaconda3\lib\site-packages\pyx\text.py", line 1083, in _execute raise TexResultError("TeX didn't respond as expected within the timeout period.") pyx.text.TexResultError: TeX didn't respond as expected within the timeout period. The expression passed to TeX was: \usepackage{color}% \PyXInput{4}% After parsing the return message from TeX, the following was left: * *(c:/texlive/2017/texmf-dist/tex/latex/graphics/color.sty (c:/texlive/2017/texmf-dist/tex/latex/graphics-cfg/color.cfg) ! Missing \endcsname inserted. <to be read again> (cut after 5 lines; use errordetail.full for all output) I tried the other option for the preamble that is mentioned in the documentation, from pyx import * text.set(text.LatexRunner, pyxgraphics=0) text.preamble(r'\usepackage[pyx]{color}') c = canvas.canvas() a = '\\textcolor[rgb]{1,0,0}{x}' c.text(0, 0, a) c.writePDFfile('./plots/test') which also fails, probably because I did not copy the mentioned files in the respective paths, which is something I would like to avoid. The full output is ignoring special 'color push rgb 1 0 0' ignoring special 'color pop' and it actually prints a pdf, but with no color, just in black (because is ignoring the tex color statements). What is the solution for this problem? To be honest I don't even understand what the problem is. thanks a lot, Jose Miotto |
From: Gert-Ludwig I. <ger...@ph...> - 2017-09-17 12:26:14
|
Hello, according to the docs, texenc fixes the encoding used in the communication with (La)TeX. Unfortunately, in general, the log messages of (La)TeX are not returned in a well-defined encoding. Specifically, messages containing input from the (La)TeX file are returned in the fontenc, e.g. T1 (cf. e.g. https://tex.stackexchange.com/questions/131238/what-controls-the-encoding-of-the-latex-log-file-and-how-to-change-it). In the following example, this will lead to a UnicodeDecodeError: from pyx import canvas, text text.set(text.LatexRunner, texenc="utf-8") text.preamble(r"""\usepackage[T1]{fontenc} \usepackage[utf8x]{inputenc}""") c = canvas.canvas() c.text(0, 0, r'foo föo föo f\"oo f\"oo', [text.parbox(2)]) c.writePDFfile() The parbox is sufficiently narrow to produce an overfull hbox and the error message will contain the input string. Independently of whether the umlaut ö is given as Unicode character or TeX code, it will be translated into a byte 0xf6 which cannot be interpreted as UTF-8 encoded character. As a temporary solution, I set the encoding of MonitorOutput in my copy of text.py to latin1 because I want to be able to handle input in utf8. Most likely, however, this is not the best solution... Best regards, Gert -- Gert-Ludwig Ingold email: Ger...@Ph... Institut für Physik Phone: +49-821-598-3234 Universität Augsburg Fax : +49-821-598-3222 D-86135 Augsburg WWW : www.physik.uni-augsburg.de/theo1/ingold Germany PGP : 86FF5A93, key available from homepage |
From: <rba...@mu...> - 2017-07-10 08:38:38
|
2017.07.10 Moin-Moin, nix pyx 0.15 ?? rené |
From: René B. <rba...@mu...> - 2017-05-16 09:33:32
|
Le Tue, 16 May 2017 04:39:38 +0200, André Wobst <wo...@us...> a écrit : > Hi René, > > change "brochure.append(page)" to > "brochure.append(document.page(page))". > Jes, its not the first time I walked into this trap. > A canvas is not a page, and cannot be inserted into a document > without wrapping it in a page object. > > The "writePDFfile" and similar methods of a canvas are just > convenience methods to directly save a canvas into a file for a > rather common use case. When creating documents yourself (for example > for multiple page documents), you need to properly (i.e. manually) > create pages and insert those into a document. Its just the way it > is ... > > Best, > > > André > rené -- René Bastian www.pythoneon.org |
From: André W. <wo...@us...> - 2017-05-16 02:39:50
|
Hi René, change "brochure.append(page)" to "brochure.append(document.page(page))". A canvas is not a page, and cannot be inserted into a document without wrapping it in a page object. The "writePDFfile" and similar methods of a canvas are just convenience methods to directly save a canvas into a file for a rather common use case. When creating documents yourself (for example for multiple page documents), you need to properly (i.e. manually) create pages and insert those into a document. Its just the way it is ... Best, André Am 15.05.2017 um 14:26 schrieb rba...@mu...: > > 2017.05.15 > > Liebe Leut, > > I got an error message: > ------------------------ > 552 > Traceback (most recent call last): > File "constell0.py", line 222, in <module> > principal() > File "constell0.py", line 216, in principal > brochure.writePDFfile("TvD") > File "/home/rbm/Python/PyX-0.14.1/pyx/document.py", line 193, in writePDFfile > pdfwriter.PDFwriter(self, f, **kwargs) > File "/home/rbm/Python/PyX-0.14.1/pyx/pdfwriter.py", line 321, in __init__ > registry.write(file, self, catalog) > File "/home/rbm/Python/PyX-0.14.1/pyx/pdfwriter.py", line 78, in write > object.write(file, writer, self) > File "/home/rbm/Python/PyX-0.14.1/pyx/pdfwriter.py", line 244, in write > paperformat = self.page.paperformat > AttributeError: 'canvas' object has no attribute 'paperformat' > ---------------------- > > A code excerpt: > ---------------------- > def principal(): > " merci pour tout" > rprotos = suite_protos() > brochure = document.document() > for nproto, proto in enumerate(rprotos): > page = construirePage(proto, nproto) > #page.writePDFfile("page" + str(nproto).zfill(3)) # OK > brochure.append(page) > print(len(brochure.pages)) # 552 OK > brochure.writePDFfile("TvD") > ---------------------- > > Thanks for your help. > > René > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > PyX-user mailing list > PyX...@li... > https://lists.sourceforge.net/lists/listinfo/pyx-user -- by _ _ _ Dr. André Wobst, Amselweg 22, 85716 Unterschleißheim / \ \ / ) wo...@us..., http://www.wobsta.de/ / _ \ \/\/ / PyX - High quality PostScript and PDF figures (_/ \_)_/\_/ with Python & TeX: visit http://pyx.sourceforge.net/ |
From: <rba...@mu...> - 2017-05-15 12:26:02
|
2017.05.15 Liebe Leut, I got an error message: ------------------------ 552 Traceback (most recent call last): File "constell0.py", line 222, in <module> principal() File "constell0.py", line 216, in principal brochure.writePDFfile("TvD") File "/home/rbm/Python/PyX-0.14.1/pyx/document.py", line 193, in writePDFfile pdfwriter.PDFwriter(self, f, **kwargs) File "/home/rbm/Python/PyX-0.14.1/pyx/pdfwriter.py", line 321, in __init__ registry.write(file, self, catalog) File "/home/rbm/Python/PyX-0.14.1/pyx/pdfwriter.py", line 78, in write object.write(file, writer, self) File "/home/rbm/Python/PyX-0.14.1/pyx/pdfwriter.py", line 244, in write paperformat = self.page.paperformat AttributeError: 'canvas' object has no attribute 'paperformat' ---------------------- A code excerpt: ---------------------- def principal(): " merci pour tout" rprotos = suite_protos() brochure = document.document() for nproto, proto in enumerate(rprotos): page = construirePage(proto, nproto) #page.writePDFfile("page" + str(nproto).zfill(3)) # OK brochure.append(page) print(len(brochure.pages)) # 552 OK brochure.writePDFfile("TvD") ---------------------- Thanks for your help. René |
From: Vokac P. <Pet...@uj...> - 2017-05-15 11:33:28
|
Hello, I getting error or warning messages: Ignoring line 13372 in mapping file 'pdftex.map': Unknown token '<MinLibBol' Ignoring line 13373 in mapping file 'pdftex.map': Unknown token '<MinLibBol' Ignoring line 13374 in mapping file 'pdftex.map': Unknown token '<MinLibBol' Ignoring line 13375 in mapping file 'pdftex.map': Unknown token '<MinLibBolIta' Ignoring line 13376 in mapping file 'pdftex.map': Unknown token '<MinLibBolIta' Ignoring line 13377 in mapping file 'pdftex.map': Unknown token '<MinLibBolIta' Ignoring line 13378 in mapping file 'pdftex.map': Unknown token '<MinLibIta' Ignoring line 13379 in mapping file 'pdftex.map': Unknown token '<MinLibIta' Ignoring line 13380 in mapping file 'pdftex.map': Unknown token '<MinLibIta' Ignoring line 13381 in mapping file 'pdftex.map': Unknown token '<MinLibReg' Ignoring line 13382 in mapping file 'pdftex.map': Unknown token '<MinLibReg' Ignoring line 13383 in mapping file 'pdftex.map': Unknown token '<MinLibReg' Can I suppress it somehow? I am sitting at Gentoo Linux I have: dev-python/pyx-0.13::gentoo USE="-doc" PYTHON_TARGETS="python3_4" app-text/texlive-2015::gentoo USE="X png truetype xml" L10N="cs en en- GB" Thanks, Petr --------------------------------------- Neuvádí-li se v textu nebo příloze tohoto e-mailu jinak, není jeho obsah zamýšlen jako návrh na uzavření smlouvy (nabídka) nebo přijetí nabídky. Každá smlouva, pokud bude uzavřena, musí mít výhradně písemnou formu. Informace obsažené v tomto e-mailu jsou určeny výlučně pro potřeby jeho adresáta. Jeho text nebo přílohy mohou obsahovat důvěrné údaje, případně jiné informace podléhající ochraně dle příslušných právních předpisů. Pokud Vám tento e-mail byl omylem doručen, zdržte se jakéhokoli nakládání s textem či přílohami, jako je kopírovaní, přeposílání, zpřístupnění další osobě a podobně. O chybném doručení informujte, prosím, odesílatele a e-mail včetně příloh vymažte ze svého počítače a dalších informačních systémů. -------------------------------------- If not stated otherwise, the text of the e-mail is not intended as a contracting offer (draft contract) or offer acceptance. Each contract, should it be concluded, strictly requires a written form. The information contained in this e-mail is intended solely for the addressee. The main body or attachments may contain confidential information or, as the case may be, other information subject to protection under the relevant legal regulations. If you have received this e-mail in error, please refrain from copying, forwarding or disclosing the content or attachments to other persons. Please notify the sender about the mistaken delivery and delete the e-mail, including all attachments, from your computer. Think about the nature... Do you really need to print this e-mail? |
From: René B. <rba...@mu...> - 2017-05-11 09:13:02
|
Salut André, I see: there is no hope before next week ...;) What do you think about that: get a PS-form of the wanted glyphs (trough FontForge ?) and translate to Pyx (I made that for some music glyphs) ? Servus René Le Thu, 11 May 2017 10:09:02 +0200, André Wobst <wo...@us...> a écrit : > Dear René, > > just a very quick response, also for my own reference for the future. > > Right now we do not support anything else than the original dvi > format as defined by Donald Knuth. Seems like this original dvi > format is called version 2, and it looks like there are extensions: > http://dvisvgm.bplaced.net/ talks about version 3 (related to etex) > and 5 to 7 (related to xetex). > > As an additional reference > https://tex.stackexchange.com/questions/282763/how-does-xelatex-and-lualatex-extend-the-dvi-format > talks about 2 additional commands, 252 (define nativ font) and 253 > (set glyphs). Details need to be taken from the .web source as far as > I can see. Anyway, those additions might be added to the PyX dvi > engine somewhere in the future. But don't count on that in the near > future. Given the very slow (but still remaining) development efforts > on PyX, this will surely take years to be addressed. I'm sorry for > that. > > Best, > > > André > > Am 10.05.2017 um 12:34 schrieb rba...@mu...: > > > > > 2017.05.10 > > > > Salut, > > > > How can i use xetex with pyx ? > > > > Thanks, > > > > René B. > > > > ------------------------------------------------------------------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > PyX-user mailing list > > PyX...@li... > > https://lists.sourceforge.net/lists/listinfo/pyx-user > -- René Bastian www.pythoneon.org |
From: André W. <wo...@us...> - 2017-05-11 08:40:21
|
Dear René, just a very quick response, also for my own reference for the future. Right now we do not support anything else than the original dvi format as defined by Donald Knuth. Seems like this original dvi format is called version 2, and it looks like there are extensions: http://dvisvgm.bplaced.net/ talks about version 3 (related to etex) and 5 to 7 (related to xetex). As an additional reference https://tex.stackexchange.com/questions/282763/how-does-xelatex-and-lualatex-extend-the-dvi-format talks about 2 additional commands, 252 (define nativ font) and 253 (set glyphs). Details need to be taken from the .web source as far as I can see. Anyway, those additions might be added to the PyX dvi engine somewhere in the future. But don't count on that in the near future. Given the very slow (but still remaining) development efforts on PyX, this will surely take years to be addressed. I'm sorry for that. Best, André Am 10.05.2017 um 12:34 schrieb rba...@mu...: > > 2017.05.10 > > Salut, > > How can i use xetex with pyx ? > > Thanks, > > René B. > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > PyX-user mailing list > PyX...@li... > https://lists.sourceforge.net/lists/listinfo/pyx-user -- by _ _ _ Dr. André Wobst, Amselweg 22, 85716 Unterschleißheim / \ \ / ) wo...@us..., http://www.wobsta.de/ / _ \ \/\/ / PyX - High quality PostScript and PDF figures (_/ \_)_/\_/ with Python & TeX: visit http://pyx.sourceforge.net/ |
From: <rba...@mu...> - 2017-05-10 11:04:11
|
2017.05.10 Salut, How can i use xetex with pyx ? Thanks, René B. |
From: Joerg L. <jo...@us...> - 2017-04-18 14:25:19
|
Hi Micha, I have tried to reproduce this with the current PyX trunk but obtain a different (and correct) result (see attached PDF output), which will not lead to crashes with older pdflatex versions. It seems to me that you have not fully applied the fixes in r3682. In addition, you should also apply r3683, which fixes a related bug that does not lead to a pdflatex crash but nevertheless corrects an incorrect field name in the PDF font descriptor output. Cheers, Jörg On 18.04.17, Michael Hartmann wrote: > Dear PyX developers, > > I have a problem similar to the one fixed by SVN commit r3682: I create a PDF > using PyX (see image.py). When including this PDF file in a latex document and > compiling, pdflatex aborts: > > ts/map/pdftex/updmap/pdftex.map} <./image.pdfInternal Error (0): Call to > Object where the object was type 2, not the expected type 1 > Aborted > > I have not used the latest developer version of PyX, but I have manually > applied the changes of r3682. Also, pdflatex seems to work with newer version, > but I have no distribution to test this at the moment. > > I have attached a minimal example to reproduce the crash. Probably, this is > not a bug in PyX, but a bug with pdflatex. > > This is my version of pdflatex (Debian jessie): > $ pdflatex -v > pdfTeX 3.14159265-2.6-1.40.15 (TeX Live 2015/dev/Debian) > kpathsea version 6.2.1dev > Copyright 2014 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX). > There is NO warranty. Redistribution of this software is > covered by the terms of both the pdfTeX copyright and > the Lesser GNU General Public License. > For more information about these matters, see the file > named COPYING and the pdfTeX source. > Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX). > Compiled with libpng 1.6.13; using libpng 1.6.13 > Compiled with zlib 1.2.8; using zlib 1.2.8 > Compiled with poppler version 0.26.5 > > Kind regards, :) > > --Michael > \documentclass{article} > > \usepackage{graphicx} > > \begin{document} > > \includegraphics{image.pdf} > > \end{document} > from pyx import * > > text.set(text.LatexRunner) > text.preamble(r"\usepackage{siunitx}") > > c = canvas.canvas() > c.text(0, 0, r"\SI{5}{{\um}}") > c.writePDFfile() > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > PyX-user mailing list > PyX...@li... > https://lists.sourceforge.net/lists/listinfo/pyx-user |
From: Michael H. <mi...@sp...> - 2017-04-18 14:24:31
|
Hi Jörg, > I have tried to reproduce this with the current PyX trunk but obtain a > different (and correct) result (see attached PDF output), which will not > lead to crashes with older pdflatex versions. It seems to me that you > have not fully applied the fixes in r3682. > > In addition, you should also apply r3683, which fixes a related bug that > does not lead to a pdflatex crash but nevertheless corrects an incorrect > field name in the PDF font descriptor output. Now it works. Either I did a mistake applying r3682 or it is also crucial to apply r1681 (reactivate the pfb to pfa fallback (was likely checked in by accident during bug hunting)). Thank you very much! :) Best wishes, --Michael |
From: Ralf U. <ral...@ph...> - 2017-04-18 13:42:59
|
On 18.04.2017 14:54, Michael Hartmann wrote: > Dear PyX developers, > > I have a problem similar to the one fixed by SVN commit r3682: I create a PDF > using PyX (see image.py). When including this PDF file in a latex document and > compiling, pdflatex aborts: > > ts/map/pdftex/updmap/pdftex.map} <./image.pdfInternal Error (0): Call to > Object where the object was type 2, not the expected type 1 > Aborted > > I have not used the latest developer version of PyX, but I have manually > applied the changes of r3682. Also, pdflatex seems to work with newer version, > but I have no distribution to test this at the moment. > the example compiles without error in the current debian/stretch texlive environment: /tmp# pdflatex -v pdfTeX 3.14159265-2.6-1.40.17 (TeX Live 2016/Debian) kpathsea version 6.2.2 Copyright 2016 Han The Thanh (pdfTeX) et al. There is NO warranty. Redistribution of this software is covered by the terms of both the pdfTeX copyright and the Lesser GNU General Public License. For more information about these matters, see the file named COPYING and the pdfTeX source. Primary author of pdfTeX: Han The Thanh (pdfTeX) et al. Compiled with libpng 1.6.28; using libpng 1.6.28 Compiled with zlib 1.2.8; using zlib 1.2.8 Compiled with poppler version 0.48.0 one could check ubuntu 1604 and 1610, which have texlive versions between jessie and stretch. best regards, Ralf > I have attached a minimal example to reproduce the crash. Probably, this is > not a bug in PyX, but a bug with pdflatex. > > This is my version of pdflatex (Debian jessie): > $ pdflatex -v > pdfTeX 3.14159265-2.6-1.40.15 (TeX Live 2015/dev/Debian) > kpathsea version 6.2.1dev > Copyright 2014 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX). > There is NO warranty. Redistribution of this software is > covered by the terms of both the pdfTeX copyright and > the Lesser GNU General Public License. > For more information about these matters, see the file > named COPYING and the pdfTeX source. > Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX). > Compiled with libpng 1.6.13; using libpng 1.6.13 > Compiled with zlib 1.2.8; using zlib 1.2.8 > Compiled with poppler version 0.26.5 > > Kind regards, :) > > --Michael > > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > > _______________________________________________ > PyX-user mailing list > PyX...@li... > https://lists.sourceforge.net/lists/listinfo/pyx-user > -- Ralf Utermann _____________________________________________________________________ Universität Augsburg, Institut für Physik -- EDV-Betreuer Universitätsstr.1 D-86135 Augsburg Phone: +49-821-598-3231 SMTP: Ral...@Ph... Fax: -3411 |
From: Michael H. <mi...@sp...> - 2017-04-18 13:12:47
|
Dear PyX developers, I have a problem similar to the one fixed by SVN commit r3682: I create a PDF using PyX (see image.py). When including this PDF file in a latex document and compiling, pdflatex aborts: ts/map/pdftex/updmap/pdftex.map} <./image.pdfInternal Error (0): Call to Object where the object was type 2, not the expected type 1 Aborted I have not used the latest developer version of PyX, but I have manually applied the changes of r3682. Also, pdflatex seems to work with newer version, but I have no distribution to test this at the moment. I have attached a minimal example to reproduce the crash. Probably, this is not a bug in PyX, but a bug with pdflatex. This is my version of pdflatex (Debian jessie): $ pdflatex -v pdfTeX 3.14159265-2.6-1.40.15 (TeX Live 2015/dev/Debian) kpathsea version 6.2.1dev Copyright 2014 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX). There is NO warranty. Redistribution of this software is covered by the terms of both the pdfTeX copyright and the Lesser GNU General Public License. For more information about these matters, see the file named COPYING and the pdfTeX source. Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX). Compiled with libpng 1.6.13; using libpng 1.6.13 Compiled with zlib 1.2.8; using zlib 1.2.8 Compiled with poppler version 0.26.5 Kind regards, :) --Michael |
From: René B. <rba...@mu...> - 2017-03-22 19:44:50
|
Ce n'est pas une solution. rb Le Wed, 22 Mar 2017 17:43:42 -0000, rba...@mu... a écrit : > > Eine (nicht schöne) Lösung gefunden: > > musik1 = r```egin{music}\Ped\end{music}``` > musik2 = r```egin{music}\sPed\end{music}``` > musik3 = r```egin{music}\DEP\end{music}``` > musik4 = r```egin{music}\sDEP\end{music}``` > text.set(text.LatexRunner) > text.preamble(r"\usepackage{times}\usepackage{musixtex}") > c = canvas.canvas() > c.text(0, 0, r"\LaTeX{} doesn't need to look like \LaTeX{} all > the time.") c.text(0, 3, musik1) > c.text(2, 3, musik2) > c.text(4, 3.5, musik3) > c.text(6, 3.5, musik4) > > Geht's auch leichter ? > > rb > > -------------------- > 2017.03.22 > > Hell-oh, > > Is there a way to use music fonts? How to do? > > merci et a+ > > René > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > PyX-user mailing list > PyX...@li... > https://lists.sourceforge.net/lists/listinfo/pyx-user -- René Bastian www.pythoneon.org |
From: <rba...@mu...> - 2017-03-22 17:43:02
|
Eine (nicht schöne) Lösung gefunden: musik1 = r```egin{music}\Ped\end{music}``` musik2 = r```egin{music}\sPed\end{music}``` musik3 = r```egin{music}\DEP\end{music}``` musik4 = r```egin{music}\sDEP\end{music}``` text.set(text.LatexRunner) text.preamble(r"\usepackage{times}\usepackage{musixtex}") c = canvas.canvas() c.text(0, 0, r"\LaTeX{} doesn't need to look like \LaTeX{} all the time.") c.text(0, 3, musik1) c.text(2, 3, musik2) c.text(4, 3.5, musik3) c.text(6, 3.5, musik4) Geht's auch leichter ? rb -------------------- 2017.03.22 Hell-oh, Is there a way to use music fonts? How to do? merci et a+ René |