LaTeX forum ⇒ Document ClassesKile can't find a file in memoir class and i can't find on internet Topic is solved

Information and discussion about specific document classes and how to create your own document classes.
pessoaclau
Posts: 2
Joined: Tue Aug 20, 2024 5:48 am

Kile can't find a file in memoir class and i can't find on internet

Postby pessoaclau » Tue Aug 20, 2024 6:07 am

I'm using kile, but I need to use a brazilian class made by university. When i try to run, always say that there is no 'xpatch.sty' file in respective path and I can't find this file to download. This is my .log file

This is pdfTeX, Version 3.141592653-2.6-1.40.25 (TeX Live 2023/Debian) (preloaded format=pdflatex 2024.8.19)  20 AUG 2024 00:45
entering extended mode
 restricted \write18 enabled.
 %&-line parsing enabled.
**thesis.tex
(./thesis.tex
LaTeX2e <2023-11-01> patch level 1
L3 programming layer <2024-01-22>
(./0classe/USPSC.cls
Document Class: 0classe/USPSC 01/06/2021 v3.1 USPSC
(/usr/share/texlive/texmf-dist/tex/latex/base/ifthen.sty
Package: ifthen 2022/04/13 v1.1d Standard LaTeX ifthen package (DPC)
)
(/usr/share/texlive/texmf-dist/tex/latex/memoir/memoir.cls
Document Class: memoir 2024/01/26 v3.8.2 configurable book, report, article doc
ument class

! LaTeX Error: File `xpatch.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name: 
! Emergency stop.
<read *> 
         
l.50 \newcount
              \@memcnta^^M
*** (cannot \read from terminal in nonstop modes)

 
Here is how much of TeX's memory you used:
 156 strings out of 476182
 2873 string characters out of 5795595
 1922975 words of memory out of 5000000
 22244 multiletter control sequences out of 15000+600000
 558069 words of font info for 36 fonts, out of 8000000 for 9000
 14 hyphenation exceptions out of 8191
 48i,0n,57p,233b,17s stack positions out of 10000i,1000n,20000p,200000b,200000s
!  ==> Fatal error occurred, no output PDF file produced!


I already tried to

I am using Linux Mint 22.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics
User avatar
Stefan Kottwitz
Site Admin
Posts: 10228
Joined: Mon Mar 10, 2008 9:44 pm

Kile can't find a file in memoir class and i can't find on internet  Topic is solved

Postby Stefan Kottwitz » Tue Aug 20, 2024 10:34 am

Welcome to the forum!

pessoaclau wrote:I
install the package from CTAN (https://www.ctan.org/pkg/xpatch), in this case, there is no 'xpatch.sty';


Download the files xpatch.dtx and xpatch.ins. Then, run pdflatex xpatch.ins at the command line. This will generate xpatch.sty.

pessoaclau wrote:I
- using some 'xpatch.sty' from GitHub (https://github.com/gkapfham/curriculum-vitae/blob/master/xpatch/xpatch.sty);

That may be an idea, though it may not be the current version or it may be a modified one.

pessoaclau wrote:I
- install package 'texlive-latex-extra' via terminal, but this give me 469 errors (2001 lines in .log);

This should be the regular way for your Linux, because the version from the Linux repository should match your current installation. Can you post the .log file here, as attachments? The attachments link is below the text edit field, when writing a post.

469 errors doesn't mean much, as one error can break the compilation so hard that there are many more errors. Always look at the first error and fix the first error.

If you installed the package this way, you could run kpsewhich xpatch.sty to locate the file and have a look, which version it is. On my system, it's here: /usr/local/texlive/2024/texmf-dist/tex/latex/xpatch/xpatch.sty. Though, a quick way could be to put xpatch.sty into the same folder where your document is located. Not the one from the Lunix package, but the one you created from xpatch.ins/xpatch.dtx.

pessoaclau wrote:I
- run using overleaf, and it works, but this is not a solution for me (this document could be very large and overleaf has a limit of size to run).

You could use it temporarily as a start until you fixed your local installation. You could also check if your university has an advanced license for its students that allows bigger files.

You could also consider removing the Linux Mint texlive packages and install the newest version from the internet: https://www.tug.org/texlive/quickinstall.html

Stefan
LaTeX.org admin

pessoaclau
Posts: 2
Joined: Tue Aug 20, 2024 5:48 am

Kile can't find a file in memoir class and i can't find on internet

Postby pessoaclau » Mon Aug 26, 2024 10:30 pm

Stefan Kottwitz wrote:
You could also consider removing the Linux Mint texlive packages and install the newest version from the internet: https://www.tug.org/texlive/quickinstall.html

Stefan


Thank You Stefan. I install all packages related to latex and update the ones that I already had. This works very well.


Return to “Document Classes”

Who is online

Users browsing this forum: No registered users and 11 guests