Creating a centered text box in RMarkdown - r-markdown

I am using RMarkdown to generate a standard pdf_document. What would be the simplest solution to insert a centered text box in my document which I can add information in?
TIA!

Related

How to insert image wrapped by text in Xaringan slides

I know in latex the code for inserting image wrapped by text is something like:
\begin{wrapfigure}{r}{0.4\textwidth}
\centering
\includegraphics[width=0.35\textwidth]{img1.jpg}
\caption{This is a figure positioned at the right and wrapped with text.}
\label{fig:img1}
\end{wrapfigure}
I wonder if xaringan slide also has the same tools and if any how to do it.

OCR in Sage Maker

Guys i am trying to build infrastructure on aws for getting help from others on annotation. currently we uses label-studio for text annotation. as might know you can label text by selecting through polygon and than writing what does selected area mean. ex: if polygon is made around english word than what writing out label of it to annotate that given english word. for more see image below.
How can i do this in SageMaker Ground Truth. as far as i have gone i think it can just label pre defined words. you cant create custom label in it by selecting any given area using polygon in image am i right ?
Unfortunately LS doesn't support changing of labels on the fly.

SDL for a edit text box

I want to write a code editor which supports code highlighting, selection, search and replace and similar features.
Since I'm unsatisfied with normal edit box controls (I want WAY more flexibility) I decided to write my own UI controls. It would be great if the editor could run on linux and windows (I don't have a Mac but that would be great as well) and thus I've been thinking on using SDL to render the edit text box control.
As far as I know I can draw anti-aliased text and SDL is nicely cross-compatible, but I'm unsure if functionalities like smooth scrolling could be implemented.
Question: is it possible to use SDL for a custom edit text box and have smooth scrolling?
Here is LazyFoo's tutorial on editable text input boxes: http://lazyfoo.net/tutorials/SDL/32_text_input_and_clipboard_handling/index.php
It doesn't do scrolling: you'll have to do it yourself. The LazyFoo tutorials on scrolling and scrolling backgrounds here ( http://lazyfoo.net/tutorials/SDL/index.php ) should help, although it's not, obviously, a text box that's being scrolled.

Add text to a picture using photoshop

I want to know if exist templates to add text on photoshop like in the following pictures:
http://sphotos-e.ak.fbcdn.net/hphotos-ak-ash4/485070_566956359990277_263279122_n.jpg
https://fbcdn-sphotos-b-a.akamaihd.net/hphotos-ak-ash4/3263_403189956409783_609225582_n.jpg
Could you suggest some pages where I can study and try those effects ?
Thanks.
Step1: Find the fonts. Search on font sites for similiar fonts or try to cut out the font and upload it to http://www.whatfontis.com/ or http://www.myfonts.com/WhatTheFont/
Step2: just play around with blending options and stuff.
from what I can see it's these settings you want too look at:
"Notche Latina": Gradient overlay, white stroke and black dropshadow.
"photo recoblablabla": inner shadow and might be in overlay-mode or something
"Festival de la bira": once again, white stroke
First make a layer adjust the objcet on layer as per your requirement.
Add some effects from filter gallery if you required (or layer style).
Click on the text toolbar type your text (required text).Then to apply effects
right click on text layer and click on rasterize type.now you can add effects from the filter gallery to the text.(or Layer style eg-inner shadows,bevel and emboss).

Win32 RichEdit align paragraph vertically

I need to align paragraph vertically (top, center, bottom) in a RichEdit.
I googled it and found nothing about this issue. Does anybody know a workaround
to achive this. I use C++ Builder 2010, are there any VCL or Windows API way solution?
I don't think TRichEdit supports Vertical Text Alignment. For example take this tiny RTF document:
{\rtf1\ansi\ansicpg1250\deff0\deflang1048{\fonttbl{\f0\fnil\fcharset0 Calibri;}}\viewkind4\uc1\pard\sa200\sl276\slmult1\qc\lang9\f0\fs22\vertalc Text\par}
When this is put into TRichEdit the "Text" is only aligned horizontally. Open the document with WordPad and it looks absolutely the same. Open it up with Ms Word and the "Text" is centered both vertically and horizontally in the page. Since TRichEdit doesn't support the \vertalc, there's no need for any kind of API to set that attribute.