I want my email id on left, phone number in middle and site on right side, i.e. I want the line to be "justify" aligned (please look at the image).
CV.jpg
I used "\hspace{}" for adding space but I think it's not the right way.
Link for resume.cls: https://docs.google.com/document/d/12QO34MquVCenQ8Vu8fmuIzrSRqPIhvUZiRdVVCqSqbA/edit
I tried the following code:
\documentclass{resume}
\usepackage{tabularx}
\usepackage{hyperref}
\hypersetup{colorlinks=true,urlcolor=blue}
\hypersetup{linktocpage}
\usepackage{marvosym}
\usepackage[bitstream-charter]{mathdesign}
\usepackage[left=1cm,top=0.5cm,right=1cm,bottom=0.1cm]{geometry}
\name{\bf Saksham Sharma}
\address{
{\Large\Letter}{\href{mailto:abc#gmail.com}{abc#gmail.com}}
{\Large\Telefon} +1-xxx-xxx-xxxx
{\Large\Mundus} {\href{example.com}{example.com}}
}
\begin{document}
\end{document}
Use \hfill to push the content to the sides:
\documentclass{resume}
\usepackage{marvosym}
\usepackage[bitstream-charter]{mathdesign}
\usepackage{geometry}
\geometry{
hmargin=1cm,
top=5mm,
bottom=1mm
}
\usepackage{hyperref}
\hypersetup{
colorlinks=true,
urlcolor=blue,
linktocpage
}
\name{\bfseries Saksham Sharma}
\address{%
{\Large\Letter}{\href{mailto:abc#gmail.com}{abc#gmail.com}}\hfill
{\Large\Telefon} +1-xxx-xxx-xxxx\hfill
{\Large\Mundus} {\href{example.com}{example.com}}%
}
\begin{document}
\end{document}
However, I'd advise against using some restrictive resume class for setting your CV, unless it's something really fancy. Instead, just use article:
\documentclass{article}
\usepackage{marvosym}
\usepackage[bitstream-charter]{mathdesign}
\usepackage{geometry}
\geometry{
hmargin=1cm,
top=5mm,
bottom=1mm
}
\usepackage{hyperref}
\hypersetup{
colorlinks=true,
urlcolor=blue,
linktocpage
}
\setlength{\parindent}{0pt}
\begin{document}
{\centering
{\huge\bfseries \MakeUppercase{Saksham Sharma}\par}
\bigskip
{\Large\Letter}{\href{mailto:abc#gmail.com}{abc#gmail.com}}\hfill
{\Large\Telefon} +1-xxx-xxx-xxxx\hfill
{\Large\Mundus} {\href{example.com}{example.com}}
\par}
\smallskip
Your resume here
\end{document}
Related
Although i have tried many code of a footnote in a caption of a figure , it doesn't work , really , where is the problem here
\documentclass[a4paper,12pt]{report}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{fancyhdr}
\makenomenclature
\usepackage[nottoc]{tocbibind}
\pagenumbering{Roman}
\usepackage{lipsum}
\setcounter{tocdepth}{5}
\setcounter{secnumdepth}{4}
\begin{document}
\begin{figure}
\centering
\includegraphics[width=0.8\textwidth{images/frog.jpg}
\caption[frog]{frog \footnotemark }
\label{fig:pic1}
\end{figure}
\footnotetext{frog}
\end{document}
Two problems:
you can't have the \makenomenclature macro in your code with a package which defines it, e.g. nomencl
the ] after the optional argument of your graphic is missing
With the split between \footnotetext and \footnotemark there is always the risk that the floating figure and the footnote will end up on different pages. You can lessen the risk by using [htbp] as floating specifier for your figure, this way you at least allowed the figure to be placed where the footnote is.
\documentclass[a4paper,12pt]{report}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{fancyhdr}
%\makenomenclature
\usepackage[nottoc]{tocbibind}
\pagenumbering{Roman}
\usepackage{lipsum}
\setcounter{tocdepth}{5}
\setcounter{secnumdepth}{4}
\begin{document}
\begin{figure}[htpb]
\centering
\includegraphics[width=0.8\textwidth]{example-image-duck}
\caption[frog]{frog \footnotemark }
\label{fig:pic1}
\end{figure}
\footnotetext{frog}
\end{document}
I got some big latex source that compiles to a booklet that justifies text in an alternating manner, left-right-left-right, so that it's nice for printing I guess. How can you remove that? I can't share the entire thing, but it starts with:
\documentclass[12pt, a4paper, twoside]{book}
\usepackage{helvet}
\usepackage{hyperref}
\usepackage{graphicx}
\usepackage{listings}
\usepackage{textcomp}
\usepackage[
a4paper,
outer=2cm,
inner=4cm,
top=2cm,
bottom=2cm
]{geometry}
\usepackage{float}
\usepackage{tabularx}
\usepackage[disable]{todonotes}
%\usepackage{color, soul}
\usepackage{color}
\usepackage{amsmath}
\usepackage{algorithmicx}
\usepackage[noend]{algpseudocode}
\usepackage{algorithm}
\usepackage{framed}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{titlepic}
\usepackage{fancyhdr}
\usepackage[simplified]{pgf-umlcd}
\usepackage{tikz}
\definecolor{grey}{rgb}{0.9, 0.9, 0.9}
\definecolor{dkgreen}{rgb}{0,0.6,0}
\definecolor{dkred}{rgb}{0.6,0,0.0}
\lstdefinestyle{DOS}
{
backgroundcolor=\color{black},
basicstyle=\scriptsize\color{white}\ttfamily,
stringstyle=\color{white},
keywords={}
}
\lstdefinestyle{makefile}
{
numberblanklines=false,
language=make,
tabsize=4,
keywordstyle=\color{red},
identifierstyle= %plain identifiers for make
}
Found the answer, and it was because of some code that I didn't include above
\fancyhf{}
\fancyhead[LO, RE]{\small \rightmark}
\fancyfoot[LO, RE]{\small \thepage}```
It was the LO, RE that means Left side when odd page, right side on even pages. So, changed that to LO, LE and it's now consistent
I am very new to LaTex and am trying to center a figure.
I have tried to use the package float using both [h] and [H], I have tried to add \centering and I have tried to wrap the image in \begin{center} \end{centering} but nothing seems to work.
My full code is as such
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{float}
\graphicspath{ {images/} }
\title{Dissertation}
\author{GC}
\date{\today}
\begin{document}
\maketitle
\section{Introduction}
\begin{figure}[H]
\centering
\includegraphics{my_grades}
\caption{grades plot}
\label{fig:grade}
\end{figure}
This figure does not seem to want to centre
\end{document}
This figure on the compiled document looks as such. If someone could help me understand why this doesn't want to move that would be great:
Your code seems fine, I just added a [width=50mm] in your include graphics and it centered the Figure.
I would check two issues:
Is your figure to larger than the textwidth?
Does your Figure has a white part on its lefthand side?
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{float}
\graphicspath{ {images/} }
\title{Dissertation}
\author{GC}
\date{\today}
\begin{document}
\maketitle
\section{Introduction}
\begin{figure}[H]
\centering
\includegraphics[width=50mm]{darth-vader_5yvm.jpeg}
\caption{grades plot}
\label{fig:grade}
\end{figure}
This figure does not seem to want to centre
\end{document}
I want to do this in Latex
http://prntscr.com/nejl0x
But I cant make it work.
My code is the following
\documentclass{report}
\usepackage{graphicx}
\usepackage{ragged2e}
\usepackage{sectsty}
\usepackage{minitoc} % for contents
\chapterfont{\raggedleft}
\begin{document}
\dominitoc[n]
\chapter{Introduction}
\minitoc
\section{About}
\label{sec:About}
\section{Motivation}
\label{sec:Motivation}
\end{document}
But It doesn't work.
Also I cannot understand how to use the \undotted and \nomtcpagenumbers for minitoc.
The fasted way to remove the dotted lines is the undotted package option. To remove the page numbers, you can use \mtcsetpagenumbers{minitoc}{off}
\documentclass{report}
\usepackage{graphicx}
\usepackage{ragged2e}
\usepackage{sectsty}
\usepackage[undotted]{minitoc}
\mtcsetpagenumbers{minitoc}{off}
\mtcsetoffset{minitoc}{-4em}
\chapterfont{\raggedleft}
\begin{document}
\dominitoc
\tableofcontents
\chapter{Introduction}
\minitoc
\section{About}
\label{sec:About}
\section{Motivation}
\label{sec:Motivation}
\end{document}
See this MWE:
% !TeX spellcheck = en_US
\documentclass[12pt]{article}
\usepackage[onehalfspacing]{setspace}
\usepackage[a4paper, margin=2.5cm]{geometry}
\usepackage{mathptmx}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage[hang]{caption}
\usepackage{subcaption}
\usepackage[bottom]{footmisc}
\usepackage{dcolumn} %makes r output work
\usepackage{tabularx}
\newcolumntype{L}[1]{>{\raggedright\arraybackslash}p{#1}}
\newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}}
\newcolumntype{R}[1]{>{\raggedleft\arraybackslash}p{#1}}
\newcommand{\possessivecite}[1]{\citeauthor{#1}'s (\citeyear{#1})}
\usepackage{pdfpages}
\usepackage{hyperref}
\usepackage{pdflscape}
\usepackage{xcolor}
\usepackage{tikz}
\usetikzlibrary{calc}
\begin{document}
\begin{landscape}
\setcapmargin[2cm]
\begin{figure}[]
\captionsetup{justification=centering}
\caption{Main Caption. }
\label{fig:val_efcts}
\begin{subfigure}{0.55\textwidth}
\caption{X}
\includegraphics[width=\textwidth] {example-image-a}
\end{subfigure}
\begin{subfigure}{0.55\textwidth}
\caption{Y}
\includegraphics[width=\textwidth] {example-image-b}
\end{subfigure}
\begin{subfigure}{0.55\textwidth}
\caption{Z}
\includegraphics[width=\textwidth] {example-image-c}
\end{subfigure}
\captionsetup{justification=raggedright} \subcaption*{This subcaption is supposed to be ragged right and intented by 4 cm. \\ This is in a new line.}
\end{figure}
\end{landscape}
\end{document}
It should be self-explanatory, mostly. I'd like the last subcaption below the picture to be ragged right, but indented 2 cm. I tried to use \setcapmargin, but that does not work, creating the "undefined control sequence" error (so it's an unknown command).
Since you're writing a caption without numbering, set it in a \parbox where you have some more control over the placement and alignment:
\documentclass{article}
\usepackage{graphicx}
\usepackage[hang]{caption}
\usepackage{subcaption}
\begin{document}
\begin{figure}[]
\captionsetup{justification=centering}
\caption{Main Caption. }
\label{fig:val_efcts}
\begin{subfigure}{0.3\textwidth}
\caption{X}
\includegraphics[width=\linewidth] {example-image-a}
\end{subfigure}\hfill
\begin{subfigure}{0.3\textwidth}
\caption{Y}
\includegraphics[width=\linewidth] {example-image-b}
\end{subfigure}\hfill
\begin{subfigure}{0.3\textwidth}
\caption{Z}
\includegraphics[width=\linewidth] {example-image-c}
\end{subfigure}
\hspace*{4cm}%
\parbox{\dimexpr\linewidth-8cm}{\raggedright
\strut This subcaption is supposed to be ragged right and indented by 4cm. \\
This is in a new line.\strut%
}
\end{figure}
\end{document}
Note the use of \struts to support correct baseline alignment when dealing with text inside \parboxes. For more on this, see How to keep a constant baseline skip when using minipages (or \parboxes)?