Hot answers tagged

4

This isn't hugely difficult, and the pictures use nothing that isn't obviously in the manual: \documentclass[varwidth,border=5]{standalone} \usepackage{tikz} \tikzset{ball/.style={shape=circle, shading=ball, ball color=blue!50!cyan!50, minimum size=0.375cm}} \begin{document} \centering \begin{tikzpicture} \draw circle [radius=1]; \foreach \i in {0,...,7} ...


4

The package subfigure is obsolete and shouldn't be used any longer. There are two alternatives: subfig or subcaption. Use \usepackage[font=Large]{subfig} for larger caption labels, for example. \documentclass{article} \usepackage[demo]{graphicx} %\usepackage{amssymb} \usepackage{caption} \usepackage[font=Large]{subfig} \begin{document} \...


4

You can add a graphics rule (I didn't test if it works for all sort of pathes and curious file names): \documentclass[a4paper,12pt]{book} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{graphicx} \usepackage{etoolbox} \makeatletter \preto\Gin@extensions{svg,} \DeclareGraphicsRule{.svg}{pdf}{.pdf}{\noexpand\Gin@base.pdf} \makeatother \...


4

ctan now has the package qrcode, which doesn't need any tricks for pdfLaTeX. The default is a 2cm square, but an option allows you to change the height. (And since you specifically mentioned the width, I'll state the obvious fact that the height and width of the square are equal.) For example, the document \documentclass{article} \usepackage{qrcode} \...


3

For fun, here is a solution in ConTeXt. The solution relies on my wrapper around the drops module by Peter Rolf. The drops module uses imagemagic to draw the shadow (which looks more realistic than the tikz-style shadows) \usemodule[dropshadow] \setupexternalfigures[location={local,global,default}] \definedropshadow [polaroid] [flatdark] [...


2

It is always possible to redefine a command, the question is : will it break something if I do it? If you are certain that \includegraphics is used only to import svg files, than this should work: \documentclass{article} \usepackage{graphicx} \let\oig\includegraphics \def\topdf#1.svg{#1.pdf} \renewcommand{\includegraphics}[2][]{\oig[#1]{\topdf#2}} \begin{...


2

One more suggestion: make figure content centered with use of \centering between sub figures insert \hfil purpose of \quad is not clear, let remove it centering of subfigure content is surplus. Rather make sub figure width smaller and adopt figure width to width of subfigure Complete code: \documentclass{article} \usepackage{graphicx} \usepackage{...


2

Yes, it's possible. MWE combines tips from various places and a bit of elbow grease. I used Qrrbrbirlbel's answer on tikz: Can we set the corner coordinates of a rectangle? to set up the block's styling as a node rather than \draw ... rectangle. I used Mark Wibrow's answer on How to set actual width for a rounded corners image using TikZ? for the path ...


2

I was searching for a solution for some time so it's probably usefull for someone else. You have to do the following in the same order: In Visio: Go to options and open Customize Ribbon Add the developertools to the menu Go to the developer tab and open Show ShapeSheet -> Print Properties Edit PageLeftMargin, PageRightMargin, PageTopMargin and ...


1

If you want to have control over the placement of the figure floats without the floating behaviour, the use the [H]ERE float specification provided by the float package: \documentclass{report} \usepackage{graphicx,float} \begin{document} \raggedbottom \chapter{A chapter} \section{First section} \subsubsection{First subsection} \begin{figure}[H] \...


1

The problem is unsupported compressed objects in BaKoMa TeX before V 11.0 In this reason, there are two ways to solve the problem: 1) Use most recent version of BaKoMa TeX, version 11.0 or later 2) Convert PDF such that to uncompress objects which may be done by saving PDF in 1.4 compatibility mode.



Only top voted, non community-wiki answers of a minimum length are eligible