How to center a p element in the screen without a body or html element and create a black background

What I want to do is to use <p onclick=’this.innerHTML++’>0</p> and make this code have a black background that covers the whole screen and center the text in it. I want it to not have a body element or an html element as I just want the <p> element. I tried using box-shadows and the… Read More How to center a p element in the screen without a body or html element and create a black background

LateX Beamer : Putting a tikzpicture next to a picture

I’d like to put tikzpicture next to a picture on a beamer but right now the tikzpicture is way below the slide ! Here is my code : \begin{frame}{Frame name} \begin{columns}[t] \column{.5\textwidth} \centering \begin{tikzpicture}{Tikzpicture name} %my tikzpicture here \end{tikzpicture} \column{.5\textwidth} \centering \includegraphics[width=100px, height=200 px]{PICTURE.jpg} \end{columns} \end{frame} >Solution : You can use T as alignment option… Read More LateX Beamer : Putting a tikzpicture next to a picture

How can I place a figure on top of the page?

I am currently working on this code (this is a shortened version): \documentclass{scrartcl} \usepackage[utf8]{inputenc} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} % Syntax: % \DoublLine[half of the double line distance]{first node}{second node}{options line 1}{options line 2} \newcommand\DoubleLine[5][4pt]{% \path(#2)–(#3)coordinate[at start](h1)coordinate[at end](h2); \draw[#4]($(h1)!#1!90:(h2)$)–($(h2)!#1!-90:(h1)$); % node [midway, above=1pt, fill=none] {3}; \draw[#5]($(h1)!#1!-90:(h2)$)–($(h2)!#1!90:(h1)$); % node [midway, below=1pt, fill=none] {3}; } \begin{figure}[h] \begin{tikzpicture}[myn/.style={very thick,draw,inner sep=0.25cm,outer… Read More How can I place a figure on top of the page?