rostam / GraphTea

The Graph Theory Software
http://graphtheorysoftware.com/
84 stars 27 forks source link

Latex not generating properly #57

Open Marti2203 opened 4 years ago

Marti2203 commented 4 years ago

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?

azinazadi commented 4 years ago

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

Marti2203 commented 4 years ago

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.

azinazadi commented 4 years ago

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 notifications@github.com 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 .

Marti2203 commented 4 years ago

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

Marti2203 commented 4 years ago

image This is just made. @azinazadi Test.pdf

azinazadi commented 4 years ago

thanks. it used to draw also the edges. would you please send also the generated latex file?

On Fri, Feb 21, 2020 at 7:48 PM Martin Mirchev notifications@github.com wrote:

[image: image] https://user-images.githubusercontent.com/7456946/75062335-e89a7480-54e2-11ea-9ab4-f2219eea7312.png This is just made. @azinazadi https://github.com/azinazadi Test.pdf https://github.com/rostam/GraphTea/files/4237569/Test.pdf

— 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=AAF37VPS6K7END2FURTNSH3REAOYHA5CNFSM4KFGBGQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMTWJLY#issuecomment-589784239, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAF37VODPZFNSHVNH4D3NITREAOYHANCNFSM4KFGBGQQ .

Marti2203 commented 4 years ago

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

azinazadi commented 4 years ago

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?

Marti2203 commented 4 years ago

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.

azinazadi commented 4 years ago

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

Am Dienstag, 25. Februar 2020 schrieb Martin Mirchev < notifications@github.com>:

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 .

Marti2203 commented 4 years ago

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 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 commented 4 years ago

I am using TexMaker, maybe It could be important

Marti2203 commented 4 years ago

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.

azinazadi commented 4 years ago

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 notifications@github.com 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 .

Marti2203 commented 4 years ago

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.

azinazadi commented 4 years ago

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 notifications@github.com 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 .

Marti2203 commented 4 years ago

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 commented 4 years ago
  1. Is the shell still used? @azinazadi
rostam commented 4 years ago

@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.