# Tex files and how to view them

**URL:** <https://gramps.discourse.group/t/tex-files-and-how-to-view-them/1989>\
**Category:** Help\
**Tags:** prerequisite-mgmt\
**Created:** [November 20, 2021, 1:36am UTC](https://gramps.discourse.group/t/tex-files-and-how-to-view-them/1989 "2021-11-20T01:36:02Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![les61](https://avatars.discourse-cdn.com/v4/letter/l/e36b37/32.png) [@les61](https://gramps.discourse.group/u/les61)\
**Post date:** [November 20, 2021, 1:36am UTC](https://gramps.discourse.group/t/tex-files-and-how-to-view-them/1989/1 "2021-11-20T01:36:02Z")

</div>

I have loaded various add-ons and have tried to create reports from REPORTS \> TREES which creates a report with a “.tex” [LaTeX](https://gramps-project.org/wiki/index.php/Output_formats#LaTeX) file format. I have downloaded [TeXworks](https://tug.org/texworks/) and [LEd](https://www.latexeditor.org/) and open the reports and can see the script of the report but cannot compile them to pdf documents.

**Can anyone suggest an alternative to view the reports or tricks for viewing in these program?**

GRAMPS: GrampsAIO64-5.1.3-2  
Python: 3.6.4 (default, Jan 23 2018, 13:17:37) …  
BSDDB: 6.1.0 (6, 0, 30)  
sqlite: 3.21.0 (2.6.0)  
LANG: en\_GB.UTF-8  
OS: Windows

---

<div class="post-metadata">

**Author:** ![DaveSch](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/davesch/32/40_2.png) [@DaveSch](https://gramps.discourse.group/u/DaveSch)\
**Post date:** [November 20, 2021, 1:57am UTC](https://gramps.discourse.group/t/tex-files-and-how-to-view-them/1989/2 "2021-11-20T01:57:10Z")

</div>

Check out the [Prerequisites page](https://gramps-project.org/wiki/index.php/Addon:GenealogyTree#Microsoft_Windows) and in particular what is needed for Windows.

Once you have [MiKTeX](https://miktex.org/) installed, when you go to generate the report with the output to LaTex, make sure you have the **Open with default viewer** checked. After Gramps creates its output file, Miktex will open and there will be a Green arrow in the upper left of the window. Pressing that icon will cause the creation of the actual viewable report.

It has been awhile since I did the install and cannot remember if there is anything I missed.

---

<div class="post-metadata">

**Author:** ![DaveSch](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/davesch/32/40_2.png) [@DaveSch](https://gramps.discourse.group/u/DaveSch)\
**Post date:** [November 20, 2021, 2:15am UTC](https://gramps.discourse.group/t/tex-files-and-how-to-view-them/1989/3 "2021-11-20T02:15:33Z")

</div>

Did a reinstall to the most recent Miktex version.

You will want to experiment with custom paper sizes and orientations to get proper outputs.

---

<div class="post-metadata">

**Author:** ![DaveSch](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/davesch/32/40_2.png) [@DaveSch](https://gramps.discourse.group/u/DaveSch)\
**Post date:** [November 20, 2021, 3:52am UTC](https://gramps.discourse.group/t/tex-files-and-how-to-view-them/1989/4 "2021-11-20T03:52:40Z")

</div>

> [@les61](#):
>
> I have downloaded TeXWorks

I have not used TeXWorks but if you have it installed try the same steps using the Open with default viewer and the same Green Arrow that MikTex has. If they have similar design they probably do the same thing (or not).

---

<div class="post-metadata">

**Author:** ![les61](https://avatars.discourse-cdn.com/v4/letter/l/e36b37/32.png) [@les61](https://gramps.discourse.group/u/les61)\
**Post date:** [November 22, 2021, 2:44am UTC](https://gramps.discourse.group/t/tex-files-and-how-to-view-them/1989/5 "2021-11-22T02:44:23Z")

</div>

Dave

I have got it to work however if I create a report with 6 generation in Ancestor Tree I get the following message:

_**! TeX capacity exceeded, sorry [main memory size=3000000].**_

Have you every experienced this issue and known how to increase the capacity. I have Googled but cannot find a simple solution to the issue.

Thanks  
Les

---

<div class="post-metadata">

**Author:** ![DaveSch](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/davesch/32/40_2.png) [@DaveSch](https://gramps.discourse.group/u/DaveSch)\
**Post date:** [November 22, 2021, 12:34pm UTC](https://gramps.discourse.group/t/tex-files-and-how-to-view-them/1989/6 "2021-11-22T12:34:06Z")

</div>

I too got an error at 6 generations for Ancestor Tree. I am using the MikTex install.

**Error Message…**  
If you really absolutely need more capacity, you can ask a wizard to enlarge me.

Here is how much of TeX’s memory you used:  
27627 strings out of 478927  
588793 string characters out of 2852534  
3000001 words of memory out of 3000000  
45157 multiletter control sequences out of 15000+600000  
624823 words of font info for 230 fonts, out of 8000000 for 9000  
1141 hyphenation exceptions out of 8191  
115i,9n,122p,524b,7897s stack positions out of 5000i,500n,10000p,200000b,80000  
! ==\> Fatal error occurred, no output PDF file produced!

In truth, I am not a user of these reports so have never encountered this error.

Maybe another user has had some experience with it.

---

<div class="post-metadata">

**Author:** ![codefarmer](https://avatars.discourse-cdn.com/v4/letter/c/b9e5f3/32.png) [@codefarmer](https://gramps.discourse.group/u/codefarmer)\
**Post date:** [November 24, 2021, 12:05am UTC](https://gramps.discourse.group/t/tex-files-and-how-to-view-them/1989/7 "2021-11-24T00:05:01Z")

</div>

You mentioned that you did not find a solution via Google, but I’m not sure which solutions you tried. I don’t use TeX now, but have vague memories of this error from uni days and the steps in this blog entry ring a bell. Try steps 1-5 and let us know how it goes.

---

<div class="post-metadata">

**Author:** ![les61](https://avatars.discourse-cdn.com/v4/letter/l/e36b37/32.png) [@les61](https://gramps.discourse.group/u/les61)\
**Post date:** [November 24, 2021, 12:20am UTC](https://gramps.discourse.group/t/tex-files-and-how-to-view-them/1989/8 "2021-11-24T00:20:36Z")

</div>

@codefarmer. Is there supposed to be a link in your response?

---

<div class="post-metadata">

**Author:** ![codefarmer](https://avatars.discourse-cdn.com/v4/letter/c/b9e5f3/32.png) [@codefarmer](https://gramps.discourse.group/u/codefarmer)\
**Post date:** [November 24, 2021, 12:32am UTC](https://gramps.discourse.group/t/tex-files-and-how-to-view-them/1989/9 "2021-11-24T00:32:59Z")

</div>

Yes, there was a link in the message but email-to-Discourse gateway seems to strip out stuff. Here’s the blog I was referring to:

[https://florian-rappl.de/Articles/Page/239/latex-memory](https://florian-rappl.de/Articles/Page/239/latex-memory)

Hope it helps.

Himanshu

---

<div class="post-metadata">

**Author:** ![les61](https://avatars.discourse-cdn.com/v4/letter/l/e36b37/32.png) [@les61](https://gramps.discourse.group/u/les61)\
**Post date:** [November 24, 2021, 4:54am UTC](https://gramps.discourse.group/t/tex-files-and-how-to-view-them/1989/10 "2021-11-24T04:54:49Z")

</div>

Himanshu

Thanks

Tried that and some work and some did not. Ancestor report worked with 4 generations but with 6 got  
…  
_Overfull \hbox (1.56412pt too wide) in paragraph at lines 3536–3536_  
\*\OT1/LinuxLibertineT-TLF/m/n/9.0625 Creekborough, \*

_Overfull \hbox (13.75314pt too wide) in paragraph at lines 3536–3536_  
\*\OT1/LinuxLibertineT-TLF/m/n/10 Gloucestershire, \*  
_! Arithmetic overflow._  
 _\*  
}_  
_l.3536 }_  
\*  
_?_

For the Descendants it exceeded the 12,000,000 so I image it is just a matter of increasing that figure.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/gramps/original/1X/2ac1e712b7adf612e31ca08a55419f4cf37c0158.png) [@system](https://gramps.discourse.group/u/system)\
**Post date:** [December 24, 2021, 4:55am UTC](https://gramps.discourse.group/t/tex-files-and-how-to-view-them/1989/11 "2021-12-24T04:55:31Z")

</div>

Closed on December 24, 2021, 4:55am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
