GraphTea icon indicating copy to clipboard operation
GraphTea copied to clipboard

Latex not generating properly

Open Marti2203 opened this issue 5 years ago • 19 comments

Hello, Recently I tried to generate a latex drawing for a graph and I cannot get the same look as the one I generate in the program. Is there something specific I should do to make it work?

Marti2203 avatar Jan 10 '20 10:01 Marti2203

the latex drawing is a simplified version. it is very hard to make exactly the same look...

azinazadi avatar Feb 21 '20 09:02 azinazadi

Yeah, I suspect that but still - Assume you have a graph with vertices and edges, I understand that the nodes are hard to make the same but atleast the edges to be visualizable would be good.

Marti2203 avatar Feb 21 '20 10:02 Marti2203

would you please send a photo of what you are getting from the program? Then I can understand better what you mean...

On Fri, Feb 21, 2020 at 11:10 AM Martin Mirchev [email protected] wrote:

Yeah, I suspect that but still - Assume you have a graph with vertices and edges, I understand that the nodes are hard to make the same but atleast the edges to be visualizable would be good.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rostam/GraphTea/issues/57?email_source=notifications&email_token=AAF37VI6UD3KV3Q2JHU3TMLRD6R7PA5CNFSM4KFGBGQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMSGJTY#issuecomment-589587663, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAF37VOEZKF3HOGOWU6MLR3RD6R7PANCNFSM4KFGBGQQ .

azinazadi avatar Feb 21 '20 11:02 azinazadi

In a couple(7-8) of hours I will send a repro.

Marti2203 avatar Feb 21 '20 11:02 Marti2203

image This is just made. @azinazadi Test.pdf

Marti2203 avatar Feb 21 '20 18:02 Marti2203

Compressed as Github does not like .tex files :disappointed: Test.zip

Marti2203 avatar Feb 21 '20 20:02 Marti2203

thank you. there is a latex command in the file for the edges. I wonder why it doesnt show up in the pdf. I guess it has to do with the latex compiler, version, etc... @rostam any ideas?

azinazadi avatar Feb 25 '20 00:02 azinazadi

Maybe i do not have a specific package? I am with the latest latex packages - this has been tested both on Windows 10 machine and currently from an OpenSUSE Tumbleweed.

Marti2203 avatar Feb 25 '20 11:02 Marti2203

Could you check your compile log if it gives any errors or warnings?

Am Dienstag, 25. Februar 2020 schrieb Martin Mirchev < [email protected]>:

Maybe i do not have a specific package? I am with the latest latex packages - this has been tested both on Windows 10 machine and currently from an OpenSUSE Tumbleweed.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/rostam/GraphTea/issues/57?email_source=notifications&email_token=AAF37VM5QTC46DN5XGGB3M3RET7UDA5CNFSM4KFGBGQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEM3UPXI#issuecomment-590825437, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAF37VL7HGBNEUH7GMH52U3RET7UDANCNFSM4KFGBGQQ .

azinazadi avatar Feb 25 '20 18:02 azinazadi

LaTeX Warning: Unused global option(s): [bezier]. (./Test.aux) \openout1 = `Test.aux'. LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 25. LaTeX Font Info: ... okay on input line 25. LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 25. LaTeX Font Info: ... okay on input line 25. LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 25. LaTeX Font Info: ... okay on input line 25. LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 25. LaTeX Font Info: ... okay on input line 25. LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 25. LaTeX Font Info: ... okay on input line 25. LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 25. LaTeX Font Info: ... okay on input line 25. [1 Non-PDF special ignored! em:linewidth 0.4pt {/usr/share/texmf/fonts/map/pdftex/updmap/pdftex.map} Non-PDF special ignored! em:moveto Non-PDF special ignored! em:lineto Non-PDF special ignored! em:moveto Non-PDF special ignored! em:lineto Non-PDF special ignored! em:moveto Non-PDF special ignored! em:lineto ] (./Test.aux) ) Here is how much of TeX's memory you used: 273 strings out of 493654 2956 string characters out of 6154966 57846 words of memory out of 5000000 4103 multiletter control sequences out of 15000+600000 3938 words of font info for 15 fonts, out of 8000000 for 9000 475 hyphenation exceptions out of 8191 22i,4n,19p,128b,153s stack positions out of 5000i,500n,10000p,200000b,80000s </usr/share/texmf/fonts/type1/public/amsfonts/cm/cmr12.pfb></us r/share/texmf/fonts/type1/public/amsfonts/latxfont/lcircle1.pfb> Output written on Test.pdf (1 page, 10335 bytes). PDF statistics: 16 PDF objects out of 1000 (max. 8388607) 10 compressed objects within 1 object stream 0 named destinations out of 1000 (max. 500000) 1 words of extra memory for PDF output out of 10000 (max. 10000000)

Marti2203 avatar Feb 25 '20 19:02 Marti2203

I am using TexMaker, maybe It could be important

Marti2203 avatar Feb 25 '20 19:02 Marti2203

I looked around how GraphTea generates Latex Files and I am interesting in making a new LatexGenerator which uses tikz as a generating backend. @azinazadi @rostam If it is okay with you guys? If you have any specific requirements, mention them here and I will start working on a generator.

Marti2203 avatar Feb 26 '20 10:02 Marti2203

Sure I think it would be great and very welcome. It would be cool if you can send a pool request on that, and just make a new format? if you need help on the way we would be very happy to provide support, thank you.

On Wed, Feb 26, 2020 at 11:05 AM Martin Mirchev [email protected] wrote:

I looked around how GraphTea generates Latex Files and I am interesting in making a new LatexGenerator which uses tikz as a generating backend. @azinazadi https://github.com/azinazadi @rostam https://github.com/rostam If it is okay with you guys? If you have any specific requirements, mention them here and I will start working on a generator.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/rostam/GraphTea/issues/57?email_source=notifications&email_token=AAF37VP7AS5LAAKPIIG7C3TREY5GLA5CNFSM4KFGBGQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEM7TBJQ#issuecomment-591343782, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAF37VIWEGBIXWOB73AVF5LREY5GLANCNFSM4KFGBGQQ .

azinazadi avatar Feb 26 '20 15:02 azinazadi

I have an important question - why is the codebase with so many raw types? And I see that there are a couple of dependencies(and official java packages which are deprecated) which I did not know about before I cloned the package.

Marti2203 avatar Feb 26 '20 16:02 Marti2203

Because we developed the base more than 10 years ago and since then we only added extensions to it... I know that it also doesnt build with newer versions of Java , needs to add deprecated XML packages... maybe if you fixed the build, you could also send a pull request on that...

On Wed, Feb 26, 2020 at 5:13 PM Martin Mirchev [email protected] wrote:

I have an important question - why is the codebase with so many raw types? And I see that there are a couple of dependencies(and official java packages which are deprecated) which I did not know about before I cloned the package.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/rostam/GraphTea/issues/57?email_source=notifications&email_token=AAF37VIKHODXNXLOW3IHKFTRE2ILHA5CNFSM4KFGBGQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENA3PJI#issuecomment-591509413, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAF37VPPVJHKWVRNA2NN6V3RE2ILHANCNFSM4KFGBGQQ .

azinazadi avatar Feb 26 '20 17:02 azinazadi

Nice!

  1. Okay - I will do a major cleanup of the code with a lot of micro commits you can check.
  2. I want you guys to know that the program is amazing and I have had a wonderful experience with it and with pleasure fixup the rough edges and build system.

Marti2203 avatar Feb 26 '20 17:02 Marti2203

  1. Is the shell still used? @azinazadi

Marti2203 avatar Feb 26 '20 17:02 Marti2203

@Marti2203 @azinazadi Sorry for late reply.

@Marti2203 I accepted a new merge request for the support of Java > 8.0. So please update the last commit in your code before sending a merge request for the latex. And you are right, I tested a simple graph and the generated latex file did not work for me.

  1. Please send several pull requests with small changes rather than a big one.
  2. Thanks :) We will appreciate any fixes from you.
  3. Yes, we still use shell but I know that the library is very old.

rostam avatar Feb 27 '20 07:02 rostam