Include custom text within citation - latex

I would like to add custom text right after citation year within a reference without a comma. For example, I need (UNISDR, 2016:18) to indicate the exact page number of the reference.
To add custom text of ":18" right after year, I add following into my latex citation:
\citep[:18]{UNISDR:2016aa}
Then the result becomes (UNISDR, 2016, :18). I need to get (UNISDR, 2016:18) without a comma and a space after year.

Related

Biblatex: print autor names respecting maxcitenames in bibliography styling

I need to create a bibliography style based on authoryear, which precedes the entry with its original citation label. I know that I can set the additional style somewhat like this.
\renewbibmacro*{begentry}{%
\printnames{labelname} \usebibmacro{date+extradate}\\
}
But this will give me a different line, if maxcitenames and maxbibnames are set to different values. By example, if I have maxcitenames set to 2 and maxbibnames set to 99, I will get "Dehmel et al 2020" for citing and "Dehmel / Kenning / Wagner 2020" in the first line of the bib entry (respecting that I'm using '/' as the author delimiter). I want both to be the same, without changing maxcitenames, as the second line of the bib entry would be affected by this and no longer show all and full author names. Is there a field or bib macro that I can use to access the original label? I know that this bib style is unconventional, but the style is not my decision.

how to omit spaces in overleaf latex reference

I am using the below reference in .bib file overleaf project
#MISC{104,author = {W. R. Group},title = {Auckland II},howpublished = {https://wand.net.nz/wits/auck/2/auckland\_ii.php.}, year = {2020}, month = {Accessed on: July, 1}}
However, I get spaces in my references as shown in the link below
reference output
Two problems:
you shouldn't set urls as normal text. Use the \url{...} macro from the hyperref or url package instead
Once you have done this, you can use the xurl package to provide more possible break points and thus avoid such spaces
Unrelated comment:
the month field is not the right place to give additional information like Accessed on: July, 1. If you'd choose an appropriate entry type instead of #misc it would have its own field for this, e.g. urldate

Google spreadsheets conditional formatting if text contains numbers

I have a sheet containing my weekly schedule. Only school cells have a room number in it, so how do I format the cells to color only the ones that contain a number.
note: Actually, the room number is a number in range(A:E) followed by a three digits number in range(000:499). Ex.:(A433, B166, D254)
I tried: Text contains"(A:F)(000:444)" but it didn't work.
EDIT:
For some reason, "=REGEXMATCH(B2, "[A-F][0-9]{3}")" worked. Could anyone tell me why? I tried replacing B2 by B1, but then it didn't work. Does it have anything to do with the fact that B1 is a weekday, and so does not contain REGEXP(B1,"[A-F][0-9]{3}) returned false.
What seemed more logical to me was "=REGEXMATCH(B2:F22, "[A-F][0-9]{3}")" To apply this function in range B2 to F22. What am I missing here?
In order to match patterns, you'll need to use regular expressions. Since the standard Conditional Formatting options don't include regular expressions, you'll need to choose "Custom formula is" and then use REGEXMATCH, which returns a Boolean value.
If you really want to look for the specific room number format you mentioned, then you would use the formula:
=REGEXMATCH(A1, "[A-E][0-9]{3}")
But if you just want to look for any numbers, you can use
=REGEXMATCH(A1, "[0-9]+")
In both cases, the text you're checking is in cell A1
You might try Conditional Formatting with a custom formula rule of the type:
=if(isnumber(A1),1,regexmatch(A1,"\d"))
The above was an attempt to respond to:
Google spreadsheets conditional formatting if text contains numbers
A more particular fit for the stated room number style would be:
=REGEXMATCH(A1,"[A-F]\d\d\d")
where the first character is any of the first six letters of the alphabet, if capitalised, followed by three instances of any number.

excel to split data after comma and before space

I want to get the first name and middle name from cell. I am able to get the first name with the excel formula:
=LEFT(D2,FIND(",",D2)-1)
The name i.e Shukla,Vinay Devanand is reflecting in cell and I am able to get Shukla with above formula and now want only Vinay (All the characters after first comma and before first space)
Please help with the formula.
Vinay can be extracted by applying what is essentially the same process (replacing space for , however) on what is left once one more character (the ,) is added to the length of what is already known (Shukla) and used as the start point:
=LEFT(MID(D2,LEN(LEFT(D2,FIND(",",D2)))+1,LEN(D2)),FIND(" ",MID(D2,LEN(LEFT(D2,FIND(",",D2)))+1,LEN(D2))))

Remove section number but display the number in table of contents in LaTeX

I am new to LateX. I know how to remove the section number by using \section*{heading} instead of \section{heading}.
But when I display the section heading in the Table of Contents , it does not print the section number. I want the section number to be displayed before "Introduction to Project" and "Introduction to company" in the Table of Contents shown below.
The titlesec package is very useful to modify your chapter and section titles. An important command is \titleformat, which is described on page 4 of the manual. The command looks like this:
\titleformat{⟨command⟩}[⟨shape⟩]{⟨format⟩}{⟨label⟩}{⟨sep⟩}{⟨before-code⟩}[⟨after-code⟩]
here, we want to change the \section command, i.e. <command> is \section.
The <shape> setting is optional - we'll just leave the default value. In <format>, we define how the title shall be formatted. The default for \section is \normalfont\Large\bfseries, so we'll set it to that. If you want to change the appearance, you can do that here. Now, the interesting part: the <label> is the section number - we don't want to print it, so we'll lave that field empty. The <sep> is the separation between label and title, which should be zero if we don't have a label. Finally, with <before-code> and <after-code> we can add any code which should be run before or after printing the title. We don't need that either. So, our command is:
\titleformat{\section}{\normalfont\Large\bfseries}{}{0pt}{}
Here, a demonstration of that:
\documentclass{article}
\usepackage{titlesec}
\titleformat{\section}{\normalfont\Large\bfseries}{}{0pt}{}
\begin{document}
\tableofcontents
\section{Introduction to Company}
This is the company.
\section{Introduction to Project}
My project is very nice.
\end{document}

Resources