The example defines \eexists
and \fforall
with the additional lines as requested in the question.
\eexists
: The symbol \eexists
is composed of \exists
and the vertical line |
to get a line with a matching line thickness. The vertical line is scaled to the right
height. This vertical scaling does not change the horizontal line width. Finally the line is moved to the right position.
\fforall
: The trick with the vertical line cannot be uses, because the angle is
not known exactly. Also the angle depends on the font size. The angle can be estimated from the width and height of the symbol.
For this symbol TikZ
is used and the line width is guessed from the width of \forall
.
Update:
- Decreased distance between the two lines.
- I have removed the case for
\scriptscriptstyle
, because the symbols have larger
side bearings that would need to be compensated. But probably the symbols are not needed at such sizes anyway.
- Of course, the "magic numbers" depend on the used font. A different font might need different settings.
Example file:
\documentclass{article}
\usepackage{graphicx}
\usepackage{tikz}
\makeatletter
\newcommand*{\eexists}{%
{\mathpalette\eexistsAux{}}%
}
\newcommand*{\eexistsAux}[2]{%
\exists
\sbox0{$\m@th#1\exists$}%
\sbox2{\raisebox{\depth}{$\m@th#1|$}}%
\kern-.5\wd2 %
\resizebox{\width}{\ht0}{\copy2}%
\kern-.25\wd2 %
}
\newcommand*{\fforall}{%
{\mathpalette\fforallAux{}}%
}
\newcommand*{\fforallAuxx}[1]{%
\sbox0{$\m@th#1\forall$}%
\sbox2{%
\rlap{%
\raisebox{\depth}{$\m@th#1\backslash$}%
}%
\kern\ht0 %
}%
\sbox2{\resizebox{\ht2}{\height}{\copy2}}%
\sbox2{\resizebox{!}{\ht0}{\copy2}}%
\wd2=0pt %
\copy2
\forall
}
\newsavebox\forallBox
\newdimen\forallLineWidth
\newdimen\forallSep
\newcommand*{\fforallAux}[1]{%
\sbox\forallBox{$\m@th#1\forall$}%
\setlength{\forallLineWidth}{.06\wd\forallBox}%
\setlength{\forallSep}{.09\wd\forallBox}%
\tikz[
inner sep=0pt,
line cap=round,
line width=\forallLineWidth,
]
\draw
(0,0) node (A) {\copy\forallBox}
(A.south) ++(-\forallSep-\forallLineWidth,.4\forallLineWidth)
coordinate (A1)
(A.north west) ++(-\forallSep,-\forallLineWidth)
coordinate (A2)
(A1) -- (A2)
;%
}
\makeatother
\begin{document}
\setlength{\fboxsep}{0pt}
\renewcommand*{\arraystretch}{1.5}
\begin{tabular}{cc}
\fbox{$\forall$} & \fbox{$\exists$}\\
\fbox{$\fforall$} & \fbox{$\eexists$}\\
$\forall^\forall$ & $\exists^\exists$ \\
$\fforall^\fforall$ & $\eexists^\eexists$\\
\end{tabular}
\end{document}
As it is now, there is unfortunately no elegant solution to do that (yet) :(
The color of the personal information section is controlled by a color called color2
, the secondary color of each color scheme (after the primary color color1
, while color0
controls the color of the main text (black)).
So you could simply redefine that color, anywhere after \moderncvcolor
(or the deprecated \moderncvtheme
) and before \makecvtitle
/ \maketitle
, by:
\definecolor{color2}{rgb}{0.50,0.33,0.80}
This will however also change the color of the other elements that rely on color2
, such as the rendering of \title
(on top of my mind, it is actually the only other element that depends on it in the "classic" style variant). A hacky way to counter that is to force the color of \title
through its argument.
Putting it together:
\documentclass[10pt,a4paper]{moderncv}
\moderncvstyle{classic}
\moderncvcolor{blue}
\usepackage[scale=0.8]{geometry}
\colorlet{titlecolor}{color2}% save the secondary color before redefining it
\definecolor{color2}{rgb}{0.50,0.33,0.80}% redefine the secondary color to purple
\firstname{François}
\familyname{Tessier}
\title{\textcolor{titlecolor}{Concepteur / Développeur}}% force to render the title in the previously saved original secondary color
\address{<Rue>}{<CP Ville>}
\mobile{+44000000000}
\email{mymail@mail.com}
\begin{document}
\makecvtitle
\end{document}
yields
Best Answer
Since the placement of tha backslash is not obvious from the description in the original question, I provide three options using TikZ (the last one suggested by barbara beeton in a comment):
I am now almost convinced that the backslash should cross only the arrow, so here are some options for male and female: