GeneralBlank page before the first page

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
nikolamilevski
Posts: 6
Joined: Thu Mar 03, 2011 10:48 pm

Blank page before the first page

Post by nikolamilevski »

Hello,

When I produce pdf file I get blank page before my first intended page. I don't know how to get rid of this blank page. Any help will be highly appreciated. I post my files as attachment.

Sincerely,
Nikola
Attachments
Poročilo.pdf
(216.41 KiB) Downloaded 229 times
Poročilo.tex
(10.11 KiB) Downloaded 197 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Blank page before the first page

Post by Johannes_B »

Hi, im commenting on your code a little bit. You'll get an answer in about half an hour.

Code: Select all

file Poročilo.tex
Poročilo.tex: LaTeX 2e document, UTF-8 Unicode (with BOM) text, with very long lines, with CRLF line terminators
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
The BOM is confusing LaTeX, safe it without and everything will be fine.

Code: Select all

Code, edit and compile here:
\documentclass[a4paper,12pt]{article}
\usepackage[utf8]{inputenc} %input encoding; lahko je tudi [cp1250] ali [latin2]
\usepackage[slovene,english]{babel}
\usepackage{color}
%JB:
\usepackage{physics}
\usepackage{siunitx}
\usepackage{booktabs}
\usepackage{parskip}%not setting it manually
%JB:
\usepackage{amssymb,amsmath}
\usepackage[T1]{fontenc}
%JB: \usepackage[cp1250]{inputenc}You did load inputenc before with
%JB: another option. Be sure not to confuse the program or yourself.
\usepackage[%pdftex
]{graphicx}%JB: leave out the option, it is no good
\usepackage{array}
\usepackage[a4paper]{geometry}%You already set that as a global option
\geometry{top=1.0in, bottom=1.0in, left=1in, right=1.0in}
\begin{document}
\selectlanguage{slovene}
%JB: You could set the title and name like this
\title{Projektna naloga iz matematična fizika
Keplerjev problem}
\author{Nikola Miljevski\\28030415}
%\begin{center}
%\LARGE Projektna naloga iz matematična fizika\\
%\Large Keplerjev problem
%
%%\vspace{2 mm}
%
%\normalsize Nikola Miljevski\\
%\normalsize 28030415
%
 
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
nikolamilevski
Posts: 6
Joined: Thu Mar 03, 2011 10:48 pm

Blank page before the first page

Post by nikolamilevski »

Thank you for your reply.

I am not sure I understand what should I do.

"The BOM is confusing LaTeX, safe it without and everything will be fine."

I mean, how an I save it without?
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: Blank page before the first page

Post by Johannes_B »

Copy all the text into your favourite editor, for example notepad, and »save as ...«

There should be utf8, no BOM (Byte Order Mark) mentioned.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
nikolamilevski
Posts: 6
Joined: Thu Mar 03, 2011 10:48 pm

Re: Blank page before the first page

Post by nikolamilevski »

This solved the problem. Thank you very much! :)
Post Reply