! LaTeX Error: Unknown float option `H' - latex

I've encountered a problem trying to compile a LaTeX file:
\documentclass{article}
\usepackage{float}
...
\begin{document}
...
\begin{table}[H]
\caption{mycaption}
\end{table}
...
\end{document}
When I try to compile it, this error message is displayed:
! LaTeX Error: Unknown float option `H'.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
Any thoughts?

Related

LaTeX Error: Option clash for package hyperref

\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{banking}
\moderncvcolor{blue}
\usepackage[utf8]{inputenc}
\usepackage[scale=0.75]{geometry}
\usepackage{graphicx}
\usepackage{float}
\usepackage{import}
% links Symbol
\usepackage{bbding,pifont}
\usepackage[hidelinks]{hyperref}
% Redefinition:
\let\orighref\href
\newcommand{\hrefa}[1]{\raisebox{-0.4ex}{\HandRight}\,\orighref{...code}{#1}}
\newcommand{\hrefb}[1]{\raisebox{-0.4ex}{\HandRight}\,\orighref{xxx/}{#1}}
\newcommand{\hrefc}[1]{\raisebox{-0.4ex}{\HandRight}\,\orighref{ccc}{#1}}
\newcommand{\hrefd}[1]{\raisebox{-0.4ex}{\HandRight}\,\orighref{vvv/}{#1}}
\newcommand{\hrefe}[1]{\raisebox{-0.4ex}{\HandRight}\,\orighref{vvv}{#1}}
\newcommand{\hreff}[1]{\raisebox{-0.4ex}{\HandRight}\,\orighref{vvv}{#1}}
% end links symbol
% personal data
\name{...}
\title{}
\address{..}{}{}
\phone[mobile]{+...4}
\email{xxx#a.com}
\extrainfo{\hrefd{xc.com}}
%\photo[64pt][0.4pt]{photo.jpg}
%----------------------------------------------------------------------------------
% content
%----------------------------------------------------------------------------------
\begin{document}
Error:
LaTeX Error: Option clash for package hyperref.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.40 \begin{document}
The package hyperref has already been loaded with options:
[hidelinks]
There has now been an attempt to load it with options
[unicode]
Adding the global options:
hidelinks,unicode
to your \documentclass declaration may fix this.
Try typing <return> to proceed.
when i try to convert to pdf, i get an empty html file.
The moderncv class automatically loads the hyperref package. You can use \PassOptionsToPackage{hidelinks}{hyperref} to make sure it is loaded with the options you want.
(although your hidelinks option won't make a big difference because moderncv sets the line width of the link boxes to zero, so they are already invisible)
\PassOptionsToPackage{hidelinks}{hyperref}
\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{banking}
\moderncvcolor{blue}
\usepackage[utf8]{inputenc}
\usepackage[scale=0.75]{geometry}
\usepackage{graphicx}
\usepackage{float}
\usepackage{import}
% links Symbol
\usepackage{bbding,pifont}
% personal data
\name{...}
\title{}
\address{..}{}{}
\phone[mobile]{+...4}
\email{xxx#a.com}
%\extrainfo{\hrefd{xc.com}}
%\photo[64pt][0.4pt]{photo.jpg}
%----------------------------------------------------------------------------------
% content
%----------------------------------------------------------------------------------
\begin{document}
test
\url{stackoverflow.com}
\end{document}

tex Error: While including includegraphics

I am getting the following error while compiling my .tex document:
! Argument of \#tempa has an extra }.<inserted text>\par \maketitle
I am using texstudio on macos and using miktex.
\documentclass
[a4paper, 12pt, oneside]{Thesis}
\graphicspath{Figures/}
\usepackage{graphicx}
\begin{document}
\frontmatter
\title {\vspace{+1cm}{\includegraphics[width=30mm]{logo.pdf}}\\
\vspace{+1cm}
test}
\authors {\texorpdfstring
{\href{ibrar.ahmad#gmail.com}{Ibrar Ahmed}}
{Ibrar Ahmed}
}
\addresses {\group\\\deptname\\\univname}
\maketitle
\end{document}

New to latex, don't know why this \maketitle command is showing error?

I am new to latex and trying to use a conference template. This error is popping up for the \maketitle command and I have tried many things which did no help:
l.72 \maketitle
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
Here is what I have in .tex file:
\begin{document}
\maketitle
%===============================================================================
\begin{abstract}
And here is where the .sty file has defined the \maketitle command:
% create title
\providecommand{\maketitle}{}
\renewcommand{\maketitle}{%
\par
\begingroup
\renewcommand{\thefootnote}{\fnsymbol{footnote}}
% for perfect author name centering
\renewcommand{\#makefnmark}{\hbox to \z#{$^{\#thefnmark}$\hss}}
% The footnote-mark was overlapping the footnote-text,
% added the following to fix this problem (MK)
\long\def\#makefntext##1{%
\parindent 1em\noindent
\hbox to 1.8em{\hss $\m#th ^{\#thefnmark}$}##1
}
\thispagestyle{empty}
\#maketitle
\#thanks
\#notice
\endgroup
\let\maketitle\relax
\let\thanks\relax
}
The generated Pdf looks just fine, but the error prevails. Please enlighten me, if you understand what is going on.

Can't compile latex document

Can't compile an old document of my CV that requires additional latex libraries. Can someone recommend a tex variant that should handle it.
tried
latex
! Fatal Package fontspec Error: The fontspec package requires either XeTeX or
(fontspec) LuaTeX.
luatex
! Undefined control sequence.
l.1 \documentclass
[a4paper,10pt]{article}
xetex
I can't find the format file `xetex.fmt'!
Latex code
\documentclass[a4paper,10pt]{article}
%A Few Useful Packages
\usepackage{marvosym}
\usepackage{fontspec} %for loading fonts
\usepackage{xunicode,xltxtra,url,parskip} %other packages for formatting
\RequirePackage{color,graphicx}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage[big]{layaureo} %better formatting of the A4 page
% an alternative to Layaureo can be ** \usepackage{fullpage} **
\usepackage{supertabular} %for Grades
\usepackage{titlesec} %custom \section
\usepackage{supertabular}
%Styling Itemizations
\usepackage{enumitem}
\setlist{nolistsep}
\setitemize[1]{labelindent=\parindent, label=$\triangleright$}
%Setup hyperref package, and colours for links
\usepackage{hyperref}
\definecolor{linkcolour}{rgb}{0,0.2,0.6}
\hypersetup{colorlinks,breaklinks,urlcolor=linkcolour, linkcolor=linkcolour}
%FONTS
\defaultfontfeatures{Mapping=tex-text}
\setmainfont[SmallCapsFont = Fontin SmallCaps]{Fontin}
\titleformat{\section}{\Large\scshape\raggedright}{}{0em}{}[\titlerule]
\titlespacing{\section}{0pt}{3pt}{3pt}
%Tweak a bit the top margin
\addtolength{\voffset}{-1.3cm}
worked fine compiling with
xelatex

Package biblatex Error

I have a latex document and wanted to add references using bibtex. I created a file and saved it with the extension .bib. In the latex file I use \usepackage{biblatex} and then
\bibliographystyle{style}
\bibliography{PHcite}
When I compile I get this error:
./Physics IA.tex:153: Package biblatex Error: '\bibliographystyle' invalid.
See the biblatex package documentation for explanation.
Type H for immediate help.
...
l.153 \bibliographystyle{style}
?
./Physics IA.tex:154: LaTeX Error: Can be used only in preamble.
See the LaTeX manual or LaTeX Companion for explanation.
Type H for immediate help.
...
l.154 \bibliography
{PHcite}
You just have to look at one of the biblatex examples in order to see what the problem is:
Don't use
\documentclass[<options>]{<class>}
% ...
\begin{document}
% ...
\bibliographystyle{<style>}
\bibliography{<bib>}
% ...
\end{document}
Instead use
\documentclass[<options>]{<class>}
% ...
\usepackage[
style = <style>,
<other options>
]{biblatex}
% ...
\addbibresource[<options>]{<bib>.bib}
% ...
\begin{document}
% ...
\printbibliography[<options>]
% ...
\end{document}
Reference:
What to do to switch to biblatex?
What is the difference between BibTeX and biblatex?

Resources