I have some legacy batch file that generates a PDF with LaTeX. There is a chief.tex file which "includes" multiple *.tex files as subpages.
In the principal .tex file I already have alleged \usepackage{float}.
When executing the batch which launches the generation of the PDF I become the error:
! LaTeX Fault: Unknown bladder pick 'H'.

Adding the \usepackage{bladder} before the \begin{document} in the file where the problem comes from throws the error:
! LaTeX Error: Can be used only in preamble.

How tin I gear up this?

asked Feb 16, 2022 at x:00

2

  • Could y'all provide more detail about the document construction? How are the "multiple .tex files included? Practice you lot a chief .tex file that \includes the other .tex files? That main file should accept a preamble with the document surroundings - \documentclass ... \begin{document} ... \cease{document}. Do you take \usepackage{float} between \documentclass and \end{document}?

    Feb sixteen, 2022 at 17:21

  • @Werner The .tex files are included using \subfile{texFileName}. The maine .tex file has a \begin{document} and a \end{document} and before the \begin{document} there is a \usepackage{float} declaration.

    Feb 20, 2022 at 7:05

ane Reply one

Replacing .*}[H] with .*}[h!] fixed the problem.

answered Feb 16, 2022 at 14:58

iv

  • This does not make sense given the problem description.

    Feb 16, 2022 at 17:20

  • @Werner Doesn't make sense the fact that I replaced the float selection H with h!?

    Feb 20, 2022 at 7:02

  • Yep, the trouble seems unrelated to that alter, since H should be (y'all're loading bladder already).

    Feb xx, 2022 at 7:26

  • @Werner So I really accept no idea, I establish this solution on some forum and apparently it worked, and then I don't actually listen, but if you accept other solution, I'd gladly attempt it out.

    Feb 20, 2022 at 7:28

Non the answer you're looking for? Scan other questions tagged latex tex or ask your ain question.